summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-07-25 20:12:33 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-07-25 20:12:33 +0000
commit1626c644fa840e7d0e3178a0c02abb959cbb2d39 (patch)
tree6ccdff5f99d9f696c32990e7e7300e577ecb2010 /usr.sbin/tcpdump
parentbdd29b5fbbe2dc1fb578b767909cfc64b6db403b (diff)
#if __STDC__ --> #ifdef __STDC__
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r--usr.sbin/tcpdump/addrtoname.c4
-rw-r--r--usr.sbin/tcpdump/gnuc.h4
-rw-r--r--usr.sbin/tcpdump/interface.h4
-rw-r--r--usr.sbin/tcpdump/lbl/gnuc.h4
-rw-r--r--usr.sbin/tcpdump/print-arp.c4
-rw-r--r--usr.sbin/tcpdump/print-atalk.c4
-rw-r--r--usr.sbin/tcpdump/print-atm.c4
-rw-r--r--usr.sbin/tcpdump/print-bootp.c4
-rw-r--r--usr.sbin/tcpdump/print-decnet.c4
-rw-r--r--usr.sbin/tcpdump/print-domain.c4
-rw-r--r--usr.sbin/tcpdump/print-fddi.c4
-rw-r--r--usr.sbin/tcpdump/print-icmp.c4
-rw-r--r--usr.sbin/tcpdump/print-isoclns.c4
-rw-r--r--usr.sbin/tcpdump/print-nfs.c2
-rw-r--r--usr.sbin/tcpdump/print-ntp.c4
-rw-r--r--usr.sbin/tcpdump/print-null.c4
-rw-r--r--usr.sbin/tcpdump/print-ppp.c4
-rw-r--r--usr.sbin/tcpdump/print-sl.c4
-rw-r--r--usr.sbin/tcpdump/print-sunrpc.c4
-rw-r--r--usr.sbin/tcpdump/util.c12
-rw-r--r--usr.sbin/tcpdump/vfprintf.c4
21 files changed, 45 insertions, 45 deletions
diff --git a/usr.sbin/tcpdump/addrtoname.c b/usr.sbin/tcpdump/addrtoname.c
index 4b3ec282c86..b418aa3e902 100644
--- a/usr.sbin/tcpdump/addrtoname.c
+++ b/usr.sbin/tcpdump/addrtoname.c
@@ -23,14 +23,14 @@
*/
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/addrtoname.c,v 1.5 1996/12/12 16:23:00 bitblt Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/addrtoname.c,v 1.6 1997/07/25 20:12:20 mickey Exp $ (LBL)";
#endif
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
-#if __STDC__
+#ifdef __STDC__
struct mbuf;
struct rtentry;
#endif
diff --git a/usr.sbin/tcpdump/gnuc.h b/usr.sbin/tcpdump/gnuc.h
index 495bdf3bceb..e3e95cd33b9 100644
--- a/usr.sbin/tcpdump/gnuc.h
+++ b/usr.sbin/tcpdump/gnuc.h
@@ -1,8 +1,8 @@
-/* @(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/gnuc.h,v 1.1 1996/12/12 16:22:54 bitblt Exp $ (LBL) */
+/* @(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/gnuc.h,v 1.2 1997/07/25 20:12:29 mickey Exp $ (LBL) */
/* Define __P() macro, if necessary */
#ifndef __P
-#if __STDC__
+#ifdef __STDC__
#define __P(protos) protos
#else
#define __P(protos) ()
diff --git a/usr.sbin/tcpdump/interface.h b/usr.sbin/tcpdump/interface.h
index d323fae38a3..3143da01122 100644
--- a/usr.sbin/tcpdump/interface.h
+++ b/usr.sbin/tcpdump/interface.h
@@ -18,7 +18,7 @@
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * @(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/interface.h,v 1.6 1997/07/23 02:59:01 denny Exp $ (LBL)
+ * @(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/interface.h,v 1.7 1997/07/25 20:12:20 mickey Exp $ (LBL)
*/
#ifndef tcpdump_interface_h
@@ -140,7 +140,7 @@ extern char *savestr(const char *);
extern void wrapup(int);
-#if __STDC__
+#ifdef __STDC__
extern __dead void error(const char *, ...)
__attribute__((volatile, format (printf, 1, 2)));
extern void warning(const char *, ...) __attribute__ ((format (printf, 1, 2)));
diff --git a/usr.sbin/tcpdump/lbl/gnuc.h b/usr.sbin/tcpdump/lbl/gnuc.h
index 5f4208c5665..b8edbf1ef9a 100644
--- a/usr.sbin/tcpdump/lbl/gnuc.h
+++ b/usr.sbin/tcpdump/lbl/gnuc.h
@@ -1,8 +1,8 @@
-/* @(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/lbl/Attic/gnuc.h,v 1.1 1996/12/12 16:08:22 bitblt Exp $ (LBL) */
+/* @(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/lbl/Attic/gnuc.h,v 1.2 1997/07/25 20:12:19 mickey Exp $ (LBL) */
/* Define __P() macro, if necessary */
#ifndef __P
-#if __STDC__
+#ifdef __STDC__
#define __P(protos) protos
#else
#define __P(protos) ()
diff --git a/usr.sbin/tcpdump/print-arp.c b/usr.sbin/tcpdump/print-arp.c
index 677e59de0c3..56abb3b4984 100644
--- a/usr.sbin/tcpdump/print-arp.c
+++ b/usr.sbin/tcpdump/print-arp.c
@@ -21,14 +21,14 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-arp.c,v 1.5 1996/12/12 16:22:43 bitblt Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-arp.c,v 1.6 1997/07/25 20:12:21 mickey Exp $ (LBL)";
#endif
#include <sys/param.h>
#include <sys/time.h>
#include <sys/socket.h>
-#if __STDC__
+#ifdef __STDC__
struct mbuf;
struct rtentry;
#endif
diff --git a/usr.sbin/tcpdump/print-atalk.c b/usr.sbin/tcpdump/print-atalk.c
index 5ea6a2358c3..c67f14388d9 100644
--- a/usr.sbin/tcpdump/print-atalk.c
+++ b/usr.sbin/tcpdump/print-atalk.c
@@ -23,14 +23,14 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-atalk.c,v 1.6 1997/07/23 02:59:01 denny Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-atalk.c,v 1.7 1997/07/25 20:12:21 mickey Exp $ (LBL)";
#endif
#include <sys/param.h>
#include <sys/time.h>
#include <sys/socket.h>
-#if __STDC__
+#ifdef __STDC__
struct mbuf;
struct rtentry;
#endif
diff --git a/usr.sbin/tcpdump/print-atm.c b/usr.sbin/tcpdump/print-atm.c
index 4d4f94f9365..d6b119d942e 100644
--- a/usr.sbin/tcpdump/print-atm.c
+++ b/usr.sbin/tcpdump/print-atm.c
@@ -20,14 +20,14 @@
*/
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-atm.c,v 1.2 1996/12/12 16:22:42 bitblt Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-atm.c,v 1.3 1997/07/25 20:12:28 mickey Exp $ (LBL)";
#endif
#include <sys/param.h>
#include <sys/time.h>
#include <sys/socket.h>
-#if __STDC__
+#ifdef __STDC__
struct mbuf;
struct rtentry;
#endif
diff --git a/usr.sbin/tcpdump/print-bootp.c b/usr.sbin/tcpdump/print-bootp.c
index f983089d7be..2a85de790d9 100644
--- a/usr.sbin/tcpdump/print-bootp.c
+++ b/usr.sbin/tcpdump/print-bootp.c
@@ -22,14 +22,14 @@
*/
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-bootp.c,v 1.5 1996/12/12 16:22:41 bitblt Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-bootp.c,v 1.6 1997/07/25 20:12:22 mickey Exp $ (LBL)";
#endif
#include <sys/param.h>
#include <sys/time.h>
#include <sys/socket.h>
-#if __STDC__
+#ifdef __STDC__
struct mbuf;
struct rtentry;
#endif
diff --git a/usr.sbin/tcpdump/print-decnet.c b/usr.sbin/tcpdump/print-decnet.c
index f9408fe02f9..5793b0441af 100644
--- a/usr.sbin/tcpdump/print-decnet.c
+++ b/usr.sbin/tcpdump/print-decnet.c
@@ -21,14 +21,14 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-decnet.c,v 1.5 1996/12/12 16:22:41 bitblt Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-decnet.c,v 1.6 1997/07/25 20:12:23 mickey Exp $ (LBL)";
#endif
#include <sys/param.h>
#include <sys/time.h>
#include <sys/socket.h>
-#if __STDC__
+#ifdef __STDC__
struct mbuf;
struct rtentry;
#endif
diff --git a/usr.sbin/tcpdump/print-domain.c b/usr.sbin/tcpdump/print-domain.c
index d2d34d092f0..2eab9bdfedb 100644
--- a/usr.sbin/tcpdump/print-domain.c
+++ b/usr.sbin/tcpdump/print-domain.c
@@ -21,14 +21,14 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-domain.c,v 1.5 1996/12/12 16:22:40 bitblt Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-domain.c,v 1.6 1997/07/25 20:12:23 mickey Exp $ (LBL)";
#endif
#include <sys/param.h>
#include <sys/time.h>
#include <sys/socket.h>
-#if __STDC__
+#ifdef __STDC__
struct mbuf;
struct rtentry;
#endif
diff --git a/usr.sbin/tcpdump/print-fddi.c b/usr.sbin/tcpdump/print-fddi.c
index 2b7d1c59925..5c0d7465e24 100644
--- a/usr.sbin/tcpdump/print-fddi.c
+++ b/usr.sbin/tcpdump/print-fddi.c
@@ -21,7 +21,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-fddi.c,v 1.5 1996/12/12 16:22:38 bitblt Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-fddi.c,v 1.6 1997/07/25 20:12:24 mickey Exp $ (LBL)";
#endif
#ifdef HAVE_FDDI
@@ -31,7 +31,7 @@ static const char rcsid[] =
#include <sys/file.h>
#include <sys/ioctl.h>
-#if __STDC__
+#ifdef __STDC__
struct mbuf;
struct rtentry;
#endif
diff --git a/usr.sbin/tcpdump/print-icmp.c b/usr.sbin/tcpdump/print-icmp.c
index 1730b2a0292..f03c893b0a1 100644
--- a/usr.sbin/tcpdump/print-icmp.c
+++ b/usr.sbin/tcpdump/print-icmp.c
@@ -21,14 +21,14 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-icmp.c,v 1.5 1996/12/12 16:22:37 bitblt Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-icmp.c,v 1.6 1997/07/25 20:12:24 mickey Exp $ (LBL)";
#endif
#include <sys/param.h>
#include <sys/time.h>
#include <sys/socket.h>
-#if __STDC__
+#ifdef __STDC__
struct mbuf;
struct rtentry;
#endif
diff --git a/usr.sbin/tcpdump/print-isoclns.c b/usr.sbin/tcpdump/print-isoclns.c
index e6e7ea91105..9538045f9c6 100644
--- a/usr.sbin/tcpdump/print-isoclns.c
+++ b/usr.sbin/tcpdump/print-isoclns.c
@@ -23,14 +23,14 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-isoclns.c,v 1.5 1996/12/12 16:22:34 bitblt Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-isoclns.c,v 1.6 1997/07/25 20:12:25 mickey Exp $ (LBL)";
#endif
#include <sys/types.h>
#include <sys/time.h>
#include <sys/socket.h>
-#if __STDC__
+#ifdef __STDC__
struct mbuf;
struct rtentry;
#endif
diff --git a/usr.sbin/tcpdump/print-nfs.c b/usr.sbin/tcpdump/print-nfs.c
index cd790faf79f..8111b1d3f3d 100644
--- a/usr.sbin/tcpdump/print-nfs.c
+++ b/usr.sbin/tcpdump/print-nfs.c
@@ -28,7 +28,7 @@ static const char rcsid[] =
#include <sys/time.h>
#include <sys/socket.h>
-#if __STDC__
+#ifdef __STDC__
struct mbuf;
struct rtentry;
#endif
diff --git a/usr.sbin/tcpdump/print-ntp.c b/usr.sbin/tcpdump/print-ntp.c
index 9787cb12900..2633f8aa526 100644
--- a/usr.sbin/tcpdump/print-ntp.c
+++ b/usr.sbin/tcpdump/print-ntp.c
@@ -25,14 +25,14 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-ntp.c,v 1.5 1996/12/12 16:22:31 bitblt Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-ntp.c,v 1.6 1997/07/25 20:12:26 mickey Exp $ (LBL)";
#endif
#include <sys/param.h>
#include <sys/time.h>
#include <sys/socket.h>
-#if __STDC__
+#ifdef __STDC__
struct mbuf;
struct rtentry;
#endif
diff --git a/usr.sbin/tcpdump/print-null.c b/usr.sbin/tcpdump/print-null.c
index f8abf41172c..3be3383b1d3 100644
--- a/usr.sbin/tcpdump/print-null.c
+++ b/usr.sbin/tcpdump/print-null.c
@@ -21,7 +21,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-null.c,v 1.6 1997/07/23 02:59:02 denny Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-null.c,v 1.7 1997/07/25 20:12:26 mickey Exp $ (LBL)";
#endif
#include <sys/param.h>
@@ -30,7 +30,7 @@ static const char rcsid[] =
#include <sys/file.h>
#include <sys/ioctl.h>
-#if __STDC__
+#ifdef __STDC__
struct mbuf;
struct rtentry;
#endif
diff --git a/usr.sbin/tcpdump/print-ppp.c b/usr.sbin/tcpdump/print-ppp.c
index c5a8eceef1f..895d93e23dd 100644
--- a/usr.sbin/tcpdump/print-ppp.c
+++ b/usr.sbin/tcpdump/print-ppp.c
@@ -21,7 +21,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-ppp.c,v 1.5 1996/12/12 16:22:28 bitblt Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-ppp.c,v 1.6 1997/07/25 20:12:27 mickey Exp $ (LBL)";
#endif
#ifdef PPP
@@ -31,7 +31,7 @@ static const char rcsid[] =
#include <sys/file.h>
#include <sys/ioctl.h>
-#if __STDC__
+#ifdef __STDC__
struct mbuf;
struct rtentry;
#endif
diff --git a/usr.sbin/tcpdump/print-sl.c b/usr.sbin/tcpdump/print-sl.c
index 405afff3eab..0e23388aa70 100644
--- a/usr.sbin/tcpdump/print-sl.c
+++ b/usr.sbin/tcpdump/print-sl.c
@@ -21,7 +21,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-sl.c,v 1.6 1996/12/12 16:22:27 bitblt Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-sl.c,v 1.7 1997/07/25 20:12:27 mickey Exp $ (LBL)";
#endif
#ifdef HAVE_NET_SLIP_H
@@ -33,7 +33,7 @@ static const char rcsid[] =
#include <sys/mbuf.h>
#include <sys/socket.h>
-#if __STDC__
+#ifdef __STDC__
struct rtentry;
#endif
#include <net/if.h>
diff --git a/usr.sbin/tcpdump/print-sunrpc.c b/usr.sbin/tcpdump/print-sunrpc.c
index 07ac4aa337c..380a9345a4d 100644
--- a/usr.sbin/tcpdump/print-sunrpc.c
+++ b/usr.sbin/tcpdump/print-sunrpc.c
@@ -21,14 +21,14 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-sunrpc.c,v 1.5 1996/12/12 16:22:26 bitblt Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-sunrpc.c,v 1.6 1997/07/25 20:12:27 mickey Exp $ (LBL)";
#endif
#include <sys/param.h>
#include <sys/time.h>
#include <sys/socket.h>
-#if __STDC__
+#ifdef __STDC__
struct mbuf;
struct rtentry;
#endif
diff --git a/usr.sbin/tcpdump/util.c b/usr.sbin/tcpdump/util.c
index 05d7faed2f1..d2883300108 100644
--- a/usr.sbin/tcpdump/util.c
+++ b/usr.sbin/tcpdump/util.c
@@ -21,7 +21,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/util.c,v 1.5 1996/12/12 16:22:20 bitblt Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/util.c,v 1.6 1997/07/25 20:12:28 mickey Exp $ (LBL)";
#endif
#include <sys/types.h>
@@ -36,7 +36,7 @@ static const char rcsid[] =
#endif
#include <pcap.h>
#include <stdio.h>
-#if __STDC__
+#ifdef __STDC__
#include <stdarg.h>
#else
#include <varargs.h>
@@ -158,7 +158,7 @@ tok2str(register const struct tok *lp, register const char *fmt,
/* VARARGS */
__dead void
-#if __STDC__
+#ifdef __STDC__
error(const char *fmt, ...)
#else
error(fmt, va_alist)
@@ -169,7 +169,7 @@ error(fmt, va_alist)
va_list ap;
(void)fprintf(stderr, "%s: ", program_name);
-#if __STDC__
+#ifdef __STDC__
va_start(ap, fmt);
#else
va_start(ap);
@@ -187,7 +187,7 @@ error(fmt, va_alist)
/* VARARGS */
void
-#if __STDC__
+#ifdef __STDC__
warning(const char *fmt, ...)
#else
warning(fmt, va_alist)
@@ -198,7 +198,7 @@ warning(fmt, va_alist)
va_list ap;
(void)fprintf(stderr, "%s: WARNING: ", program_name);
-#if __STDC__
+#ifdef __STDC__
va_start(ap, fmt);
#else
va_start(ap);
diff --git a/usr.sbin/tcpdump/vfprintf.c b/usr.sbin/tcpdump/vfprintf.c
index d525e311fe9..6f436025a47 100644
--- a/usr.sbin/tcpdump/vfprintf.c
+++ b/usr.sbin/tcpdump/vfprintf.c
@@ -21,13 +21,13 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/Attic/vfprintf.c,v 1.1 1996/12/12 16:23:04 bitblt Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/Attic/vfprintf.c,v 1.2 1997/07/25 20:12:29 mickey Exp $ (LBL)";
#endif
#include <sys/types.h>
#include <stdio.h>
-#if __STDC__
+#ifdef __STDC__
#include <stdarg.h>
#else
#include <varargs.h>