summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorcsjp <csjp@FreeBSD.org>2004-09-21 22:12:43 +0000
committercsjp <csjp@FreeBSD.org>2004-09-21 22:12:43 +0000
commit88c0121fcb364467ed1cf5c2205b7d004f057ceb (patch)
tree801da413929b65c3686b34861fca205c17d248b7 /sbin
parent5361b04b030689849bbecb5ac450cabef8280783 (diff)
downloadFreeBSD-src-88c0121fcb364467ed1cf5c2205b7d004f057ceb.zip
FreeBSD-src-88c0121fcb364467ed1cf5c2205b7d004f057ceb.tar.gz
Since "d" is an array of 32 bit values, it is more
correct to change the cast from unsigned int to uint32_t. Pointed out by: luigi
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ipfw/ipfw2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c
index 4d7c535..97cbf4c 100644
--- a/sbin/ipfw/ipfw2.c
+++ b/sbin/ipfw/ipfw2.c
@@ -3329,7 +3329,7 @@ read_options:
jid = (int)strtol(*av, &end, 0);
if (jid < 0 || *end != '\0')
errx(EX_DATAERR, "jail requires prison ID");
- cmd32->d[0] = (unsigned int)jid;
+ cmd32->d[0] = (uint32_t)jid;
cmd->len |= F_INSN_SIZE(ipfw_insn_u32);
ac--; av++;
}
OpenPOWER on IntegriCloud