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
This commit is contained in:
parent
e19f6f27a7
commit
d413c2e405
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135554
@ -3329,7 +3329,7 @@ add(int ac, char *av[])
|
|||||||
jid = (int)strtol(*av, &end, 0);
|
jid = (int)strtol(*av, &end, 0);
|
||||||
if (jid < 0 || *end != '\0')
|
if (jid < 0 || *end != '\0')
|
||||||
errx(EX_DATAERR, "jail requires prison ID");
|
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);
|
cmd->len |= F_INSN_SIZE(ipfw_insn_u32);
|
||||||
ac--; av++;
|
ac--; av++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user