From 94d2e07d2237b6d171bdbbf5397c878c2458b6b9 Mon Sep 17 00:00:00 2001 From: bde Date: Thu, 5 Apr 2001 07:37:55 +0000 Subject: [PATCH] Fixed some printf format errors (don't assume that ntohl() returns u_long). --- sbin/ipfw/ipfw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/ipfw/ipfw.c b/sbin/ipfw/ipfw.c index 247b7a5da103..e76b710e67f3 100644 --- a/sbin/ipfw/ipfw.c +++ b/sbin/ipfw/ipfw.c @@ -504,9 +504,9 @@ show_ipfw(struct ip_fw *chain, int pcwidth, int bcwidth) } if (chain->fw_ipflg & IP_FW_IF_TCPSEQ) - printf(" tcpseq %lu", ntohl(chain->fw_tcpseq)); + printf(" tcpseq %lu", (u_long)ntohl(chain->fw_tcpseq)); if (chain->fw_ipflg & IP_FW_IF_TCPACK) - printf(" tcpack %lu", ntohl(chain->fw_tcpack)); + printf(" tcpack %lu", (u_long)ntohl(chain->fw_tcpack)); if (chain->fw_ipflg & IP_FW_IF_TCPWIN) printf(" tcpwin %hu", ntohs(chain->fw_tcpwin));