--- waitpacket.c.orig	Mon Jul 31 18:42:10 2006
+++ waitpacket.c	Mon Jul 31 18:44:04 2006
@@ -380,7 +380,7 @@
 			printf("seq=%lu ack=%lu sum=%x urp=%u\n\n",
 					(unsigned long) ntohl(tcp.th_seq),
 					(unsigned long) ntohl(tcp.th_ack),
-					tcp.th_sum, ntohs(tcp.th_urp));
+					(unsigned short) ntohs(tcp.th_sum), ntohs(tcp.th_urp));
 		}
 
 		/* Get and log the TCP timestamp */
