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:
Christian S.J. Peron 2004-09-21 22:12:43 +00:00
parent e19f6f27a7
commit d413c2e405

View File

@ -3329,7 +3329,7 @@ add(int ac, char *av[])
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++;
}