]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Get rid of some unnecessary includes (<time.h>, <netdb.h>, and <ctype.h>
authorguy <guy>
Tue, 6 Aug 2002 04:42:04 +0000 (04:42 +0000)
committerguy <guy>
Tue, 6 Aug 2002 04:42:04 +0000 (04:42 +0000)
are included by <tcpdump-stdinc.h>, so we don't have to include them
explicitly; <errno.h> isn't needed by print routines).

12 files changed:
gmt2local.c
print-atalk.c
print-bgp.c
print-bootp.c
print-icmp6.c
print-igrp.c
print-krb.c
print-radius.c
print-ripng.c
print-rx.c
smbutil.c
util.c

index a6b507524946023cc9dbcbdebfceb7f381cf2790..68b6537952a06824b7fbd90a0197779efd4362ed 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/gmt2local.c,v 1.6 2002-08-01 08:52:57 risso Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/gmt2local.c,v 1.7 2002-08-06 04:42:04 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -31,7 +31,6 @@ static const char rcsid[] =
 #include <tcpdump-stdinc.h>
 
 #include <stdio.h>
-#include <time.h>
 
 #ifdef HAVE_OS_PROTO_H
 #include "os-proto.h"
index 8c92b63bb87d30b0374c236ba862dc574250656b..02713752662261e439dc3b98d59e2a7242ef0870 100644 (file)
@@ -23,7 +23,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-atalk.c,v 1.72 2002-08-01 08:53:00 risso Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-atalk.c,v 1.73 2002-08-06 04:42:04 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -35,7 +35,6 @@ static const char rcsid[] =
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <netdb.h>             /* for MAXHOSTNAMELEN on some platforms */
 #include <pcap.h>
 
 #include "interface.h"
index 7ca120d100fbf11546349883b76546f3d7dfcd39..7e098438fa7d870ddf93e5aeef9a1a1416efc87f 100644 (file)
 
 #ifndef lint
 static const char rcsid[] =
-     "@(#) $Header: /tcpdump/master/tcpdump/print-bgp.c,v 1.45 2002-08-02 04:04:37 guy Exp $";
+     "@(#) $Header: /tcpdump/master/tcpdump/print-bgp.c,v 1.46 2002-08-06 04:42:04 guy Exp $";
 #endif
 
 #include <tcpdump-stdinc.h>
 
-#include <errno.h>
 #include <stdio.h>
 #include <string.h>
-#include <netdb.h>
 
 #include "interface.h"
 #include "addrtoname.h"
index 11b375574999049a5c8142936eafc469dd09d467..a44ef804b412473328516251c19ed29e4b1a3095 100644 (file)
@@ -22,7 +22,7 @@
  */
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-bootp.c,v 1.64 2002-08-01 08:53:02 risso Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-bootp.c,v 1.65 2002-08-06 04:42:05 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -31,7 +31,6 @@ static const char rcsid[] =
 
 #include <tcpdump-stdinc.h>
 
-#include <ctype.h>
 #include <stdio.h>
 #include <string.h>
 
index 1d009dfff9611bc3110643a18a7effca00d304f7..babf1b28c52a962df8381223e518c3bfcbc533bf 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-icmp6.c,v 1.63 2002-08-01 08:53:09 risso Exp $";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-icmp6.c,v 1.64 2002-08-06 04:42:05 guy Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -30,8 +30,6 @@ static const char rcsid[] =
 
 #ifdef INET6
 
-#include <ctype.h>
-
 #include <tcpdump-stdinc.h>
 
 #include <stdio.h>
index 3bf445d680609345aaf274ac0287dd8f548ac76c..a9ac11722c599f11fc76a1f12dca38f4a6a54f28 100644 (file)
@@ -23,7 +23,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-igrp.c,v 1.17 2002-08-01 08:53:10 risso Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-igrp.c,v 1.18 2002-08-06 04:42:05 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -32,7 +32,6 @@ static const char rcsid[] =
 
 #include <tcpdump-stdinc.h>
 
-#include <errno.h>
 #include <stdio.h>
 
 #include "interface.h"
index 1b70cb06267f10339e3493d51e4af13b31a13c79..0417ac8388fb957a3bb654e9c5449749d978722e 100644 (file)
@@ -23,7 +23,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-krb.c,v 1.16 2002-08-01 08:53:14 risso Exp $";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-krb.c,v 1.17 2002-08-06 04:42:05 guy Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -32,7 +32,6 @@ static const char rcsid[] =
 
 #include <tcpdump-stdinc.h>
 
-#include <errno.h>
 #include <stdio.h>
 
 #include "interface.h"
index 57cd51339af2326f625cac56a37113aac74792ec..acb88125d6a5d73600cdbfeebf15d15359a724ab 100644 (file)
@@ -44,7 +44,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "$Id: print-radius.c,v 1.14 2002-08-01 08:53:25 risso Exp $";
+    "$Id: print-radius.c,v 1.15 2002-08-06 04:42:06 guy Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -57,10 +57,6 @@ static const char rcsid[] =
 
 #include <stdio.h>
 
-#ifdef TIME_WITH_SYS_TIME
-#include <time.h>
-#endif
-
 #include "interface.h"
 #include "addrtoname.h"
 #include "extract.h"
index 6b4f6b7f9aea3e831a326f265b11424080755440..3bf0c84687a389eb70707ee87e85d586b8ede798 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-ripng.c,v 1.12 2002-08-02 14:01:09 risso Exp $";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-ripng.c,v 1.13 2002-08-06 04:42:06 guy Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -47,7 +47,6 @@ IN6_ADDR_EQUAL(const struct in6_addr *a, const struct in6_addr *b)
 
 #endif /* __MINGW32__ */
 
-#include <errno.h>
 #include <stdio.h>
 
 #include "route6d.h"
index 1ab9b76c53981dfff985435d6ed80fe71faab6d0..1a18124ea1c5d4893ac13a7a8f0adb99f7ae5543 100644 (file)
@@ -34,7 +34,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-rx.c,v 1.31 2002-08-01 08:53:27 risso Exp $";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-rx.c,v 1.32 2002-08-06 04:42:06 guy Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -44,9 +44,6 @@ static const char rcsid[] =
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#ifdef TIME_WITH_SYS_TIME
-#include <time.h>
-#endif
 #include <tcpdump-stdinc.h>
 
 #include "interface.h"
index 4f8c7b591dcfcb5f61fb397e4fbd3c1ed67f9fc3..af237f1e04c952e7b312748cd15708b2afb60342 100644 (file)
--- a/smbutil.c
+++ b/smbutil.c
@@ -12,7 +12,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-     "@(#) $Header: /tcpdump/master/tcpdump/smbutil.c,v 1.22 2002-08-01 08:53:35 risso Exp $";
+     "@(#) $Header: /tcpdump/master/tcpdump/smbutil.c,v 1.23 2002-08-06 04:42:07 guy Exp $";
 #endif
 
 #include <tcpdump-stdinc.h>
@@ -20,9 +20,6 @@ static const char rcsid[] =
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#ifdef TIME_WITH_SYS_TIME
-#include <time.h>
-#endif
 
 #include "interface.h"
 #include "extract.h"
diff --git a/util.c b/util.c
index e8515f18dadb878ac33e8e1c43cc53c5edf10e0b..9595dc10d10c13b75b30b0654fe00ba55d0923d4 100644 (file)
--- a/util.c
+++ b/util.c
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/util.c,v 1.78 2002-08-02 04:22:11 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/util.c,v 1.79 2002-08-06 04:42:07 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -41,9 +41,6 @@ static const char rcsid[] =
 #include <stdarg.h>
 #include <stdlib.h>
 #include <string.h>
-#ifdef TIME_WITH_SYS_TIME
-#include <time.h>
-#endif
 
 #include "interface.h"