]> The Tcpdump Group git mirrors - tcpdump/commitdiff
size_t may not fit into int
authoritojun <itojun>
Wed, 27 Jun 2001 02:48:45 +0000 (02:48 +0000)
committeritojun <itojun>
Wed, 27 Jun 2001 02:48:45 +0000 (02:48 +0000)
print-sctp.c

index c6e002a8b94ccc282462313d7addd07157e43ce4..7fdf1c7d52b5b31c58fb6128cd2805c44d608e74 100644 (file)
@@ -35,7 +35,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-"@(#) $Header: /tcpdump/master/tcpdump/print-sctp.c,v 1.3 2001-05-09 02:42:50 itojun Exp $ (NETLAB/PEL)";
+"@(#) $Header: /tcpdump/master/tcpdump/print-sctp.c,v 1.4 2001-06-27 02:48:45 itojun Exp $ (NETLAB/PEL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -107,8 +107,8 @@ void sctp_print(const u_char *bp,        /* beginning of sctp packet */
 
   if (sctpPacketLength < sizeof(struct sctpHeader)) 
     {
-      (void)printf("truncated-sctp - %d bytes missing!", 
-                  sctpPacketLength-sizeof(struct sctpHeader));
+      (void)printf("truncated-sctp - %ld bytes missing!", 
+                  (long)sctpPacketLength-sizeof(struct sctpHeader));
       return;
     }