Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin unifdef __STDC__
details: https://anonhg.NetBSD.org/src/rev/662fd0ab4f2e
branches: trunk
changeset: 533664:662fd0ab4f2e
user: wiz <wiz%NetBSD.org@localhost>
date: Sat Jul 06 21:46:59 2002 +0000
description:
unifdef __STDC__
diffstat:
usr.sbin/tcpdchk/fakelog.c | 17 ++---------------
usr.sbin/traceroute/ifaddrlist.c | 6 ++----
2 files changed, 4 insertions(+), 19 deletions(-)
diffs (72 lines):
diff -r 89748123c675 -r 662fd0ab4f2e usr.sbin/tcpdchk/fakelog.c
--- a/usr.sbin/tcpdchk/fakelog.c Sat Jul 06 21:44:40 2002 +0000
+++ b/usr.sbin/tcpdchk/fakelog.c Sat Jul 06 21:46:59 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fakelog.c,v 1.4 2000/12/30 21:45:44 martin Exp $ */
+/* $NetBSD: fakelog.c,v 1.5 2002/07/06 21:46:59 wiz Exp $ */
/*
* This module intercepts syslog() library calls and redirects their output
@@ -12,7 +12,7 @@
#if 0
static char sccsid[] = "@(#) fakelog.c 1.3 94/12/28 17:42:21";
#else
-__RCSID("$NetBSD: fakelog.c,v 1.4 2000/12/30 21:45:44 martin Exp $");
+__RCSID("$NetBSD: fakelog.c,v 1.5 2002/07/06 21:46:59 wiz Exp $");
#endif
#endif
@@ -55,24 +55,11 @@
/* VARARGS */
void
-#ifdef __STDC__
syslog(int severity, const char *fmt, ...)
-#else
-syslog(va_alist)
- va_dcl
-#endif
{
va_list ap;
-#ifndef __STDC__
- int severity;
- char *fmt;
- va_start(ap);
- severity = va_arg(ap, int);
- fmt = va_arg(ap, char *);
-#else
va_start(ap, fmt);
-#endif
vsyslog(severity, fmt, ap);
va_end(ap);
}
diff -r 89748123c675 -r 662fd0ab4f2e usr.sbin/traceroute/ifaddrlist.c
--- a/usr.sbin/traceroute/ifaddrlist.c Sat Jul 06 21:44:40 2002 +0000
+++ b/usr.sbin/traceroute/ifaddrlist.c Sat Jul 06 21:46:59 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ifaddrlist.c,v 1.4 2000/04/13 07:53:29 itojun Exp $ */
+/* $NetBSD: ifaddrlist.c,v 1.5 2002/07/06 21:51:30 wiz Exp $ */
/*
* Copyright (c) 1997
@@ -39,7 +39,7 @@
static const char rcsid[] =
"@(#) Header: ifaddrlist.c,v 1.2 97/04/22 13:31:05 leres Exp (LBL)";
#else
-__RCSID("$NetBSD: ifaddrlist.c,v 1.4 2000/04/13 07:53:29 itojun Exp $");
+__RCSID("$NetBSD: ifaddrlist.c,v 1.5 2002/07/06 21:51:30 wiz Exp $");
#endif
#endif
@@ -52,10 +52,8 @@
#endif
#include <sys/time.h> /* concession to AIX */
-#if __STDC__
struct mbuf;
struct rtentry;
-#endif
#include <net/if.h>
#include <netinet/in.h>
Home |
Main Index |
Thread Index |
Old Index