aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian S.J. Peron <csjp@FreeBSD.org>2004-09-21 22:12:43 +0000
committerChristian S.J. Peron <csjp@FreeBSD.org>2004-09-21 22:12:43 +0000
commitd413c2e4050b1dc09631ed89d3046981180b0c66 (patch)
tree801da413929b65c3686b34861fca205c17d248b7
parente19f6f27a72b6954fccf83ce5f194aad5471695c (diff)
downloadsrc-d413c2e4050b1dc09631ed89d3046981180b0c66.tar.gz
src-d413c2e4050b1dc09631ed89d3046981180b0c66.zip
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
Notes
Notes: svn path=/head/; revision=135554
-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 4d7c535f60d2..97cbf4c41406 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++;
}