X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/7b1275bce741b4b58f09846e5b8bf159065667c1..ed19831eeb1442c85e60919a576105b6f98d2d3f:/print-null.c diff --git a/print-null.c b/print-null.c index 26a343ac..5c312e15 100644 --- a/print-null.c +++ b/print-null.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-null.c,v 1.29 1999-11-21 12:38:24 itojun 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 @@ -34,10 +34,8 @@ static const char rcsid[] = #include #include -#if __STDC__ struct mbuf; struct rtentry; -#endif #include #include @@ -128,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: - ip6_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; }