]> The Tcpdump Group git mirrors - tcpdump/commitdiff
squelch compiler warnings
authorhannes <hannes>
Thu, 9 Aug 2007 18:53:26 +0000 (18:53 +0000)
committerhannes <hannes>
Thu, 9 Aug 2007 18:53:26 +0000 (18:53 +0000)
print-icmp.c

index d9b8c8eedc12cd034f1c41152843e614f6755913..c87d2f4a04c665768125cd4aa370a314f52014c6 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-icmp.c,v 1.85 2006-12-12 14:31:51 hannes Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-icmp.c,v 1.86 2007-08-09 18:53:26 hannes Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -415,7 +415,7 @@ icmp_print(const u_char *bp, u_int plen, const u_char *bp2, int fragmented)
                case ICMP_UNREACH_NEEDFRAG:
                    {
                        register const struct mtu_discovery *mp;
-                       mp = (struct mtu_discovery *)&dp->icmp_void;
+                       mp = (struct mtu_discovery *)(u_char *)&dp->icmp_void;
                        mtu = EXTRACT_16BITS(&mp->nexthopmtu);
                        if (mtu) {
                                (void)snprintf(buf, sizeof(buf),