diff options
author | csjp <csjp@FreeBSD.org> | 2004-09-21 22:12:43 +0000 |
---|---|---|
committer | csjp <csjp@FreeBSD.org> | 2004-09-21 22:12:43 +0000 |
commit | 88c0121fcb364467ed1cf5c2205b7d004f057ceb (patch) | |
tree | 801da413929b65c3686b34861fca205c17d248b7 /sbin | |
parent | 5361b04b030689849bbecb5ac450cabef8280783 (diff) | |
download | FreeBSD-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.c | 2 |
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++; } |