]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-null.c
Fix a typo.
[tcpdump] / print-null.c
index 96d83cdcbb7f854cac86a64376716c258b0ed9e0..5c312e1594a53936bb403c33792987e583cfba00 100644 (file)
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-null.c,v 1.27 1999-11-21 03:48:05 assar Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-null.c,v 1.31 2000-07-01 03:39:07 assar Exp $ (LBL)";
+#endif
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
 #endif
 
 #include <sys/param.h>
@@ -30,10 +34,8 @@ static const char rcsid[] =
 #include <sys/file.h>
 #include <sys/ioctl.h>
 
-#if __STDC__
 struct mbuf;
 struct rtentry;
-#endif
 #include <net/if.h>
 
 #include <netinet/in.h>
@@ -124,15 +126,15 @@ null_if_print(u_char *user, const struct pcap_pkthdr *h, const u_char *p)
                null_print(p, ip, length);
 
        switch (ip->ip_v) {
-       case 4 :
-               ip_print((const void *)ip, length);
+       case 4:
+               ip_print((const u_char *)ip, length);
                break;
 #ifdef INET6
        case 6:
-               ipv6_print((const void *)ip, length);
+               ip6_print((const u_char *)ip, length);
                break;
 #endif /* INET6 */
-       default :
+       default:
                printf("ip v%d", ip->ip_v);
                break;
        }