X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/b9ac23ce92ca22483d56ee3192c54aa8f782f9ac..b142525774c838cd9f02fecbccbc2945f602dfbc:/print-null.c diff --git a/print-null.c b/print-null.c index b0cafe12..7089eb9d 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.28 1999-11-21 09:36:58 fenner Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-null.c,v 1.30 1999-12-22 06:27:21 itojun Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -128,15 +128,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; }