summaryrefslogtreecommitdiff
path: root/usr.sbin/rarpd/rarpd.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-02-19 19:39:42 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-02-19 19:39:42 +0000
commit3923126b85f9e8a77cab9a41b5a62125acd5b4cd (patch)
tree1a8b19c5db03f8c989fc8228811837b182feb7a3 /usr.sbin/rarpd/rarpd.c
parentcc03bdb70090357d2393b6ec82e3cde4d5ce5edd (diff)
We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.
Diffstat (limited to 'usr.sbin/rarpd/rarpd.c')
-rw-r--r--usr.sbin/rarpd/rarpd.c37
1 files changed, 4 insertions, 33 deletions
diff --git a/usr.sbin/rarpd/rarpd.c b/usr.sbin/rarpd/rarpd.c
index bbe7fa7f290..ffc2815b1b5 100644
--- a/usr.sbin/rarpd/rarpd.c
+++ b/usr.sbin/rarpd/rarpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rarpd.c,v 1.33 2002/02/17 19:42:39 millert Exp $ */
+/* $OpenBSD: rarpd.c,v 1.34 2002/02/19 19:39:40 millert 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.33 2002/02/17 19:42:39 millert Exp $";
+static char rcsid[] = "$OpenBSD: rarpd.c,v 1.34 2002/02/19 19:39:40 millert Exp $";
#endif
@@ -43,6 +43,7 @@ static char rcsid[] = "$OpenBSD: rarpd.c,v 1.33 2002/02/17 19:42:39 millert Exp
#include <stdlib.h>
#include <syslog.h>
#include <string.h>
+#include <stdarg.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/time.h>
@@ -974,42 +975,22 @@ ipaddrtonetmask(addr)
/* NOTREACHED */
}
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
-
void
-#ifdef __STDC__
err(int fatal, const char *fmt,...)
-#else
-err(fmt, va_alist)
- int fatal;
- char *fmt;
-va_dcl
-#endif
{
va_list ap;
+
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) {
@@ -1019,22 +1000,12 @@ va_dcl
}
void
-#ifdef __STDC__
debug(const char *fmt,...)
-#else
-debug(fmt, va_alist)
- char *fmt;
-va_dcl
-#endif
{
va_list ap;
if (dflag) {
-#ifdef __STDC__
va_start(ap, fmt);
-#else
- va_start(ap);
-#endif
(void) fprintf(stderr, "rarpd: ");
(void) vfprintf(stderr, fmt, ap);
va_end(ap);