diff options
| author | 2002-02-19 19:39:35 +0000 | |
|---|---|---|
| committer | 2002-02-19 19:39:35 +0000 | |
| commit | e7beb4a7d58a6a0955c07ef9465f5caa3383f928 (patch) | |
| tree | a90c75bb4a04ab98987b06850cbdffd6c1903e17 /usr.sbin/lpr/common_source/common.c | |
| parent | Every command should have a manual page. (diff) | |
| download | wireguard-openbsd-e7beb4a7d58a6a0955c07ef9465f5caa3383f928.tar.xz wireguard-openbsd-e7beb4a7d58a6a0955c07ef9465f5caa3383f928.zip | |
We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.
Diffstat (limited to 'usr.sbin/lpr/common_source/common.c')
| -rw-r--r-- | usr.sbin/lpr/common_source/common.c | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/usr.sbin/lpr/common_source/common.c b/usr.sbin/lpr/common_source/common.c index 48b4f45eea0..1a97a90fe70 100644 --- a/usr.sbin/lpr/common_source/common.c +++ b/usr.sbin/lpr/common_source/common.c @@ -1,4 +1,4 @@ -/* $OpenBSD: common.c,v 1.15 2002/02/16 21:28:03 millert Exp $ */ +/* $OpenBSD: common.c,v 1.16 2002/02/19 19:39:40 millert Exp $ */ /* * Copyright (c) 1983, 1993 @@ -42,7 +42,7 @@ #if 0 static const char sccsid[] = "@(#)common.c 8.5 (Berkeley) 4/28/95"; #else -static const char rcsid[] = "$OpenBSD: common.c,v 1.15 2002/02/16 21:28:03 millert Exp $"; +static const char rcsid[] = "$OpenBSD: common.c,v 1.16 2002/02/19 19:39:40 millert Exp $"; #endif #endif /* not lint */ @@ -61,6 +61,7 @@ static const char rcsid[] = "$OpenBSD: common.c,v 1.15 2002/02/16 21:28:03 mille #include <stdlib.h> #include <stdio.h> #include <string.h> +#include <stdarg.h> #include "lp.h" #include "pathnames.h" @@ -405,28 +406,13 @@ delay(n) (void) select(0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &tdelay); } -#ifdef __STDC__ -#include <stdarg.h> -#else -#include <varargs.h> -#endif - void -#ifdef __STDC__ fatal(const char *msg, ...) -#else -fatal(msg, va_alist) - char *msg; - va_dcl -#endif { extern char *__progname; va_list ap; -#ifdef __STDC__ + va_start(ap, msg); -#else - va_start(ap); -#endif if (from != host) (void)printf("%s: ", host); (void)printf("%s: ", __progname); |
