diff options
| author | wiz <wiz@NetBSD.org> | 2002-05-26 00:02:06 +0000 |
|---|---|---|
| committer | wiz <wiz@NetBSD.org> | 2002-05-26 00:02:06 +0000 |
| commit | bf840df2cdba0729bc7a94289ba477c48b4e0da7 (patch) | |
| tree | cc28a6a0021548208caaf586c2671ec502420f5e /libexec/fingerd | |
| parent | c632c8bea4d53868b577c0e9e15ed54638ff7320 (diff) | |
__STDC__ is always defined on NetBSD.
Diffstat (limited to 'libexec/fingerd')
| -rw-r--r-- | libexec/fingerd/fingerd.c | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/libexec/fingerd/fingerd.c b/libexec/fingerd/fingerd.c index 3c582c8724b..46d5fc971fd 100644 --- a/libexec/fingerd/fingerd.c +++ b/libexec/fingerd/fingerd.c @@ -1,4 +1,4 @@ -/* $NetBSD: fingerd.c,v 1.14 2002/04/09 00:55:15 thorpej Exp $ */ +/* $NetBSD: fingerd.c,v 1.15 2002/05/26 00:02:06 wiz Exp $ */ /* * Copyright (c) 1983, 1993 @@ -44,7 +44,7 @@ __COPYRIGHT( #if 0 static char sccsid[] = "from: @(#)fingerd.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: fingerd.c,v 1.14 2002/04/09 00:55:15 thorpej Exp $"); +__RCSID("$NetBSD: fingerd.c,v 1.15 2002/05/26 00:02:06 wiz Exp $"); #endif #endif /* not lint */ @@ -57,6 +57,7 @@ __RCSID("$NetBSD: fingerd.c,v 1.14 2002/04/09 00:55:15 thorpej Exp $"); #include <unistd.h> #include <syslog.h> #include <netdb.h> +#include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -214,27 +215,12 @@ main(argc, argv) exit(0); } -#if __STDC__ -#include <stdarg.h> -#else -#include <varargs.h> -#endif - void -#if __STDC__ err(const char *fmt, ...) -#else -err(fmt, va_alist) - char *fmt; - va_dcl -#endif { va_list ap; -#if __STDC__ + va_start(ap, fmt); -#else - va_start(ap); -#endif (void) vsyslog(LOG_ERR, fmt, ap); va_end(ap); exit(1); |
