diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2001-06-13 20:13:30 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2001-06-13 20:13:30 +0000 |
commit | 296d39fd27fb525b540ab674c92dd061b535211d (patch) | |
tree | 7edece7e6e5ae162c611d8f3695633c013d78adc /usr.sbin | |
parent | b35b225becf434ea14dcf85d59100220221fec3c (diff) |
more va_start/end fixes, ok deraadt@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rarpd/rarpd.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/usr.sbin/rarpd/rarpd.c b/usr.sbin/rarpd/rarpd.c index 47d8ffaf705..cb22f20441e 100644 --- a/usr.sbin/rarpd/rarpd.c +++ b/usr.sbin/rarpd/rarpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rarpd.c,v 1.29 2000/04/14 02:52:35 itojun Exp $ */ +/* $OpenBSD: rarpd.c,v 1.30 2001/06/13 20:13:29 markus Exp $ */ /* $NetBSD: rarpd.c,v 1.25 1998/04/23 02:48:33 mrg Exp $ */ /* @@ -28,7 +28,7 @@ char copyright[] = #endif /* not lint */ #ifndef lint -static char rcsid[] = "$OpenBSD: rarpd.c,v 1.29 2000/04/14 02:52:35 itojun Exp $"; +static char rcsid[] = "$OpenBSD: rarpd.c,v 1.30 2001/06/13 20:13:29 markus Exp $"; #endif @@ -995,19 +995,25 @@ va_dcl #endif { va_list ap; -#ifdef __STDC__ - va_start(ap, fmt); -#else - va_start(ap); -#endif if (dflag) { if (fatal) (void) fprintf(stderr, "rarpd: error: "); else (void) fprintf(stderr, "rarpd: warning: "); +#ifdef __STDC__ + va_start(ap, fmt); +#else + va_start(ap); +#endif (void) vfprintf(stderr, fmt, ap); + va_end(ap); (void) fprintf(stderr, "\n"); } +#ifdef __STDC__ + va_start(ap, fmt); +#else + va_start(ap); +#endif vsyslog(LOG_ERR, fmt, ap); va_end(ap); if (fatal) { |