diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-02-19 19:39:42 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-02-19 19:39:42 +0000 |
commit | 3923126b85f9e8a77cab9a41b5a62125acd5b4cd (patch) | |
tree | 1a8b19c5db03f8c989fc8228811837b182feb7a3 /libexec/fingerd/fingerd.c | |
parent | cc03bdb70090357d2393b6ec82e3cde4d5ce5edd (diff) |
We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.
Diffstat (limited to 'libexec/fingerd/fingerd.c')
-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 ebff51bd573..e2f5542112f 100644 --- a/libexec/fingerd/fingerd.c +++ b/libexec/fingerd/fingerd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fingerd.c,v 1.25 2002/02/16 21:27:29 millert Exp $ */ +/* $OpenBSD: fingerd.c,v 1.26 2002/02/19 19:39:38 millert Exp $ */ /* * Copyright (c) 1983, 1993 @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "from: @(#)fingerd.c 8.1 (Berkeley) 6/4/93"; #else -static char rcsid[] = "$OpenBSD: fingerd.c,v 1.25 2002/02/16 21:27:29 millert Exp $"; +static char rcsid[] = "$OpenBSD: fingerd.c,v 1.26 2002/02/19 19:39:38 millert Exp $"; #endif #endif /* not lint */ @@ -59,6 +59,7 @@ static char rcsid[] = "$OpenBSD: fingerd.c,v 1.25 2002/02/16 21:27:29 millert Ex #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <stdarg.h> #include "pathnames.h" void err(const char *, ...); @@ -230,27 +231,12 @@ main(argc, argv) exit(0); } -#ifdef __STDC__ -#include <stdarg.h> -#else -#include <varargs.h> -#endif - void -#ifdef __STDC__ err(const char *fmt, ...) -#else -err(fmt, va_alist) - char *fmt; - va_dcl -#endif { va_list ap; -#ifdef __STDC__ + va_start(ap, fmt); -#else - va_start(ap); -#endif (void) vsyslog(LOG_ERR, fmt, ap); va_end(ap); exit(1); |