diff options
author | bde <bde@FreeBSD.org> | 2001-04-05 07:37:55 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2001-04-05 07:37:55 +0000 |
commit | 1e9f669d37a77edaeb6d50e0eacdbd9db7d4dd1f (patch) | |
tree | e45054edb6323033f1b8d06c075d769ce35c9937 /sbin | |
parent | cee592a2fd29eff6ceec7d5647df16b2f3b4e37a (diff) | |
download | FreeBSD-src-1e9f669d37a77edaeb6d50e0eacdbd9db7d4dd1f.zip FreeBSD-src-1e9f669d37a77edaeb6d50e0eacdbd9db7d4dd1f.tar.gz |
Fixed some printf format errors (don't assume that ntohl() returns u_long).
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ipfw/ipfw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ipfw/ipfw.c b/sbin/ipfw/ipfw.c index 247b7a5..e76b710 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)); |