]> The Tcpdump Group git mirrors - tcpdump/commitdiff
64-bit cleanup - cast the difference between two pointers to "long" and
authorguy <guy>
Tue, 10 Oct 2000 05:06:10 +0000 (05:06 +0000)
committerguy <guy>
Tue, 10 Oct 2000 05:06:10 +0000 (05:06 +0000)
print it with "%ld".

print-sl.c

index 4419f11cc0f6c8db7229784d4478c2c4d667c0c8..d4f7edd742e5b605e1fe7573e35ea6dde2cdf8db 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-sl.c,v 1.55 2000-10-09 01:53:20 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-sl.c,v 1.56 2000-10-10 05:06:10 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -265,5 +265,5 @@ compressed_sl_print(const u_char *chdr, const struct ip *ip,
        hlen = IP_HL(ip);
        hlen += TH_OFF((struct tcphdr *)&((int32_t *)ip)[hlen]);
        lastlen[dir][lastconn] = length - (hlen << 2);
-       printf(" %d (%d)", lastlen[dir][lastconn], cp - chdr);
+       printf(" %d (%ld)", lastlen[dir][lastconn], (long)(cp - chdr));
 }