Write some bit mask limits in hex rather than decimal so they look less

magic.
This commit is contained in:
Brooks Davis 2005-01-07 01:21:23 +00:00
parent dac7b54d87
commit 610055c9e2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139821

View File

@ -2525,12 +2525,12 @@ config_pipe(int ac, char **av)
if (p32 != NULL)
*p32 = a;
else if (p16 != NULL) {
if (a > 65535)
if (a > 0xFFFF)
errx(EX_DATAERR,
"mask: must be 16 bit");
*p16 = (uint16_t)a;
} else {
if (a > 255)
if (a > 0xFF)
errx(EX_DATAERR,
"mask: must be 8 bit");
p.fs.flow_mask.proto = (uint8_t)a;