diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-07-25 19:13:23 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-07-25 19:13:23 +0000 |
commit | c970811a26a4d751242a29ec6b9cce6601765c36 (patch) | |
tree | fa9dc8ca89ae62752f49098a6fe93699ab7328e5 /sbin | |
parent | 8b5947547c06bfdb31b8ad5a3e99c52ee0ca7f56 (diff) |
#if __STDC__ --> #ifdef __STDC__
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/dump/optr.c | 16 | ||||
-rw-r--r-- | sbin/fsck/fsutil.c | 20 | ||||
-rw-r--r-- | sbin/fsck_msdos/main.c | 10 | ||||
-rw-r--r-- | sbin/ipsec/photurisd/errlog.c | 19 | ||||
-rw-r--r-- | sbin/ipsec/photurisd/errlog.h | 2 | ||||
-rw-r--r-- | sbin/newfs/newfs.c | 12 | ||||
-rw-r--r-- | sbin/newlfs/misc.c | 10 | ||||
-rw-r--r-- | sbin/reboot/reboot.c | 10 | ||||
-rw-r--r-- | sbin/restore/tape.c | 8 | ||||
-rw-r--r-- | sbin/restore/utilities.c | 10 |
10 files changed, 60 insertions, 57 deletions
diff --git a/sbin/dump/optr.c b/sbin/dump/optr.c index 9e4d14373d0..285d20563f4 100644 --- a/sbin/dump/optr.c +++ b/sbin/dump/optr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: optr.c,v 1.14 1997/07/05 05:35:57 millert Exp $ */ +/* $OpenBSD: optr.c,v 1.15 1997/07/25 19:13:03 mickey Exp $ */ /* $NetBSD: optr.c,v 1.11 1997/05/27 08:34:36 mrg Exp $ */ /*- @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)optr.c 8.2 (Berkeley) 1/6/94"; #else -static char rcsid[] = "$OpenBSD: optr.c,v 1.14 1997/07/05 05:35:57 millert Exp $"; +static char rcsid[] = "$OpenBSD: optr.c,v 1.15 1997/07/25 19:13:03 mickey Exp $"; #endif #endif /* not lint */ @@ -230,7 +230,7 @@ timeest() } void -#if __STDC__ +#ifdef __STDC__ msg(const char *fmt, ...) #else msg(fmt, va_alist) @@ -244,7 +244,7 @@ msg(fmt, va_alist) #ifdef TDEBUG (void) fprintf(stderr, "pid=%d ", getpid()); #endif -#if __STDC__ +#ifdef __STDC__ va_start(ap, fmt); #else va_start(ap); @@ -257,7 +257,7 @@ msg(fmt, va_alist) } void -#if __STDC__ +#ifdef __STDC__ msgtail(const char *fmt, ...) #else msgtail(fmt, va_alist) @@ -266,7 +266,7 @@ msgtail(fmt, va_alist) #endif { va_list ap; -#if __STDC__ +#ifdef __STDC__ va_start(ap, fmt); #else va_start(ap); @@ -276,7 +276,7 @@ msgtail(fmt, va_alist) } void -#if __STDC__ +#ifdef __STDC__ quit(const char *fmt, ...) #else quit(fmt, va_alist) @@ -290,7 +290,7 @@ quit(fmt, va_alist) #ifdef TDEBUG (void) fprintf(stderr, "pid=%d ", getpid()); #endif -#if __STDC__ +#ifdef __STDC__ va_start(ap, fmt); #else va_start(ap); diff --git a/sbin/fsck/fsutil.c b/sbin/fsck/fsutil.c index caaa18343f8..06c77426c5a 100644 --- a/sbin/fsck/fsutil.c +++ b/sbin/fsck/fsutil.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fsutil.c,v 1.1 1996/10/20 08:36:25 tholo Exp $ */ +/* $OpenBSD: fsutil.c,v 1.2 1997/07/25 19:13:18 mickey Exp $ */ /* $NetBSD: fsutil.c,v 1.2 1996/10/03 20:06:31 christos Exp $ */ /* @@ -40,7 +40,7 @@ static char rcsid[] = "$NetBSD: fsutil.c,v 1.2 1996/10/03 20:06:31 christos Exp #include <stdio.h> #include <string.h> #include <stdlib.h> -#if __STDC__ +#ifdef __STDC__ #include <stdarg.h> #else #include <varargs.h> @@ -85,7 +85,7 @@ hotroot() /*VARARGS*/ void -#if __STDC__ +#ifdef __STDC__ errexit(const char *fmt, ...) #else errexit(fmt, va_alist) @@ -95,7 +95,7 @@ errexit(fmt, va_alist) { va_list ap; -#if __STDC__ +#ifdef __STDC__ va_start(ap, fmt); #else va_start(ap); @@ -129,7 +129,7 @@ vmsg(fatal, fmt, ap) /*VARARGS*/ void -#if __STDC__ +#ifdef __STDC__ pfatal(const char *fmt, ...) #else pfatal(fmt, va_alist) @@ -139,7 +139,7 @@ pfatal(fmt, va_alist) { va_list ap; -#if __STDC__ +#ifdef __STDC__ va_start(ap, fmt); #else va_start(ap); @@ -150,7 +150,7 @@ pfatal(fmt, va_alist) /*VARARGS*/ void -#if __STDC__ +#ifdef __STDC__ pwarn(const char *fmt, ...) #else pwarn(fmt, va_alist) @@ -160,7 +160,7 @@ pwarn(fmt, va_alist) { va_list ap; -#if __STDC__ +#ifdef __STDC__ va_start(ap, fmt); #else va_start(ap); @@ -177,7 +177,7 @@ perror(s) } void -#if __STDC__ +#ifdef __STDC__ panic(const char *fmt, ...) #else panic(fmt, va_alist) @@ -187,7 +187,7 @@ panic(fmt, va_alist) { va_list ap; -#if __STDC__ +#ifdef __STDC__ va_start(ap, fmt); #else va_start(ap); diff --git a/sbin/fsck_msdos/main.c b/sbin/fsck_msdos/main.c index e7a73ecbaba..269c29ba747 100644 --- a/sbin/fsck_msdos/main.c +++ b/sbin/fsck_msdos/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.7 1997/03/02 05:25:56 millert Exp $ */ +/* $OpenBSD: main.c,v 1.8 1997/07/25 19:13:15 mickey Exp $ */ /* $NetBSD: main.c,v 1.8 1996/10/17 20:29:53 cgd Exp $ */ /* @@ -35,7 +35,7 @@ #ifndef lint -static char rcsid[] = "$OpenBSD: main.c,v 1.7 1997/03/02 05:25:56 millert Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.8 1997/07/25 19:13:15 mickey Exp $"; #endif /* not lint */ #include <stdlib.h> @@ -44,7 +44,7 @@ static char rcsid[] = "$OpenBSD: main.c,v 1.7 1997/03/02 05:25:56 millert Exp $" #include <stdio.h> #include <unistd.h> #include <errno.h> -#if __STDC__ +#ifdef __STDC__ #include <stdarg.h> #else #include <varargs.h> @@ -118,7 +118,7 @@ main(argc, argv) /*VARARGS*/ int -#if __STDC__ +#ifdef __STDC__ ask(int def, const char *fmt, ...) #else ask(def, fmt, va_alist) @@ -140,7 +140,7 @@ ask(def, fmt, va_alist) return (def); } -#if __STDC__ +#ifdef __STDC__ va_start(ap, fmt); #else va_start(ap); diff --git a/sbin/ipsec/photurisd/errlog.c b/sbin/ipsec/photurisd/errlog.c index 8ad85869cd1..ed85bc840c4 100644 --- a/sbin/ipsec/photurisd/errlog.c +++ b/sbin/ipsec/photurisd/errlog.c @@ -31,11 +31,14 @@ */ /* - * $Header: /cvs/OpenBSD/src/sbin/ipsec/photurisd/Attic/errlog.c,v 1.2 1997/07/23 12:28:47 provos Exp $ + * $Header: /cvs/OpenBSD/src/sbin/ipsec/photurisd/Attic/errlog.c,v 1.3 1997/07/25 19:13:20 mickey Exp $ * - * $Author: provos $ + * $Author: mickey $ * * $Log: errlog.c,v $ + * Revision 1.3 1997/07/25 19:13:20 mickey + * #if __STDC__ --> #ifdef __STDC__ + * * Revision 1.2 1997/07/23 12:28:47 provos * tunnel,lifetimes,hostname via startkey/startup * errors to stderr before daemon, to syslog afterwards @@ -49,14 +52,14 @@ */ #ifndef lint -static char rcsid[] = "$Id: errlog.c,v 1.2 1997/07/23 12:28:47 provos Exp $"; +static char rcsid[] = "$Id: errlog.c,v 1.3 1997/07/25 19:13:20 mickey Exp $"; #endif #define _ERRLOG_C_ #include <stdio.h> #include <stdlib.h> -#if __STDC__ +#ifdef __STDC__ #include <stdarg.h> #else #include <varargs.h> @@ -88,7 +91,7 @@ void _log_error(int flag, char *fmt, va_list ap); */ void -#if __STDC__ +#ifdef __STDC__ crit_error(int flag, char *fmt, ...) #else crit_error(flag, fmt, va_alist) @@ -98,7 +101,7 @@ crit_error(flag, fmt, va_alist) #endif { va_list ap; -#if __STDC__ +#ifdef __STDC__ va_start(ap, fmt); #else va_start(ap); @@ -114,7 +117,7 @@ crit_error(flag, fmt, va_alist) */ void -#if __STDC__ +#ifdef __STDC__ log_error(int flag, char *fmt, ...) #else log_error(flag, fmt, va_alist) @@ -124,7 +127,7 @@ log_error(flag, fmt, va_alist) #endif { va_list ap; -#if __STDC__ +#ifdef __STDC__ va_start(ap, fmt); #else va_start(ap); diff --git a/sbin/ipsec/photurisd/errlog.h b/sbin/ipsec/photurisd/errlog.h index 04583eacfaf..e23a74343a1 100644 --- a/sbin/ipsec/photurisd/errlog.h +++ b/sbin/ipsec/photurisd/errlog.h @@ -40,7 +40,7 @@ #define EXTERN extern #endif -#if __STDC__ +#ifdef __STDC__ EXTERN void crit_error __P((int, char *, ...)); EXTERN void log_error __P((int, char *, ...)); #else diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c index 783af570292..88ae0220bee 100644 --- a/sbin/newfs/newfs.c +++ b/sbin/newfs/newfs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: newfs.c,v 1.15 1997/06/16 00:03:12 deraadt Exp $ */ +/* $OpenBSD: newfs.c,v 1.16 1997/07/25 19:13:07 mickey Exp $ */ /* $NetBSD: newfs.c,v 1.20 1996/05/16 07:13:03 thorpej Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)newfs.c 8.8 (Berkeley) 4/18/94"; #else -static char rcsid[] = "$OpenBSD: newfs.c,v 1.15 1997/06/16 00:03:12 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: newfs.c,v 1.16 1997/07/25 19:13:07 mickey Exp $"; #endif #endif /* not lint */ @@ -72,7 +72,7 @@ static char rcsid[] = "$OpenBSD: newfs.c,v 1.15 1997/06/16 00:03:12 deraadt Exp #include <unistd.h> #include <util.h> -#if __STDC__ +#ifdef __STDC__ #include <stdarg.h> #else #include <varargs.h> @@ -88,7 +88,7 @@ struct mntopt mopts[] = { { NULL }, }; -#if __STDC__ +#ifdef __STDC__ void fatal(const char *fmt, ...); #else void fatal(); @@ -679,7 +679,7 @@ rewritelabel(s, fd, lp) /*VARARGS*/ void -#if __STDC__ +#ifdef __STDC__ fatal(const char *fmt, ...) #else fatal(fmt, va_alist) @@ -689,7 +689,7 @@ fatal(fmt, va_alist) { va_list ap; -#if __STDC__ +#ifdef __STDC__ va_start(ap, fmt); #else va_start(ap); diff --git a/sbin/newlfs/misc.c b/sbin/newlfs/misc.c index 7691812a61f..3fe32ac9031 100644 --- a/sbin/newlfs/misc.c +++ b/sbin/newlfs/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.2 1996/06/23 14:31:53 deraadt Exp $ */ +/* $OpenBSD: misc.c,v 1.3 1997/07/25 19:13:09 mickey Exp $ */ /* $NetBSD: misc.c,v 1.2 1995/03/18 14:58:51 cgd Exp $ */ /*- @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 6/5/93"; #else -static char rcsid[] = "$OpenBSD: misc.c,v 1.2 1996/06/23 14:31:53 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: misc.c,v 1.3 1997/07/25 19:13:09 mickey Exp $"; #endif #endif /* not lint */ @@ -60,14 +60,14 @@ log2(num) return (i); } -#if __STDC__ +#ifdef __STDC__ #include <stdarg.h> #else #include <varargs.h> #endif void -#if __STDC__ +#ifdef __STDC__ fatal(const char *fmt, ...) #else fatal(fmt, va_alist) @@ -76,7 +76,7 @@ fatal(fmt, va_alist) #endif { va_list ap; -#if __STDC__ +#ifdef __STDC__ va_start(ap, fmt); #else va_start(ap); diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c index cbbee229e3a..bde7fe57bfc 100644 --- a/sbin/reboot/reboot.c +++ b/sbin/reboot/reboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: reboot.c,v 1.8 1997/06/22 22:19:11 downsj Exp $ */ +/* $OpenBSD: reboot.c,v 1.9 1997/07/25 19:13:10 mickey Exp $ */ /* $NetBSD: reboot.c,v 1.8 1995/10/05 05:36:22 mycroft Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)reboot.c 8.1 (Berkeley) 6/5/93"; #else -static char rcsid[] = "$OpenBSD: reboot.c,v 1.8 1997/06/22 22:19:11 downsj Exp $"; +static char rcsid[] = "$OpenBSD: reboot.c,v 1.9 1997/07/25 19:13:10 mickey Exp $"; #endif #endif /* not lint */ @@ -231,14 +231,14 @@ usage() exit(1); } -#if __STDC__ +#ifdef __STDC__ #include <stdarg.h> #else #include <varargs.h> #endif void -#if __STDC__ +#ifdef __STDC__ err(const char *fmt, ...) #else err(fmt, va_alist) @@ -247,7 +247,7 @@ err(fmt, va_alist) #endif { va_list ap; -#if __STDC__ +#ifdef __STDC__ va_start(ap, fmt); #else va_start(ap); diff --git a/sbin/restore/tape.c b/sbin/restore/tape.c index eb4d52deef5..4355ec4b0ed 100644 --- a/sbin/restore/tape.c +++ b/sbin/restore/tape.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tape.c,v 1.9 1997/07/05 20:51:26 millert Exp $ */ +/* $OpenBSD: tape.c,v 1.10 1997/07/25 19:13:13 mickey Exp $ */ /* $NetBSD: tape.c,v 1.26 1997/04/15 07:12:25 lukem Exp $ */ /* @@ -1254,14 +1254,14 @@ checksum(buf) } #ifdef RRESTORE -#if __STDC__ +#ifdef __STDC__ #include <stdarg.h> #else #include <varargs.h> #endif void -#if __STDC__ +#ifdef __STDC__ msg(const char *fmt, ...) #else msg(fmt, va_alist) @@ -1270,7 +1270,7 @@ msg(fmt, va_alist) #endif { va_list ap; -#if __STDC__ +#ifdef __STDC__ va_start(ap, fmt); #else va_start(ap); diff --git a/sbin/restore/utilities.c b/sbin/restore/utilities.c index 766cc3b2488..9ec0bc1d0b5 100644 --- a/sbin/restore/utilities.c +++ b/sbin/restore/utilities.c @@ -1,4 +1,4 @@ -/* $OpenBSD: utilities.c,v 1.3 1997/07/05 20:51:27 millert Exp $ */ +/* $OpenBSD: utilities.c,v 1.4 1997/07/25 19:13:12 mickey Exp $ */ /* $NetBSD: utilities.c,v 1.11 1997/03/19 08:42:56 lukem Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)utilities.c 8.4 (Berkeley) 10/18/94"; #else -static char rcsid[] = "$OpenBSD: utilities.c,v 1.3 1997/07/05 20:51:27 millert Exp $"; +static char rcsid[] = "$OpenBSD: utilities.c,v 1.4 1997/07/25 19:13:12 mickey Exp $"; #endif #endif /* not lint */ @@ -403,14 +403,14 @@ reply(question) /* * handle unexpected inconsistencies */ -#if __STDC__ +#ifdef __STDC__ #include <stdarg.h> #else #include <varargs.h> #endif void -#if __STDC__ +#ifdef __STDC__ panic(const char *fmt, ...) #else panic(fmt, va_alist) @@ -419,7 +419,7 @@ panic(fmt, va_alist) #endif { va_list ap; -#if __STDC__ +#ifdef __STDC__ va_start(ap, fmt); #else va_start(ap); |