diff options
author | julian <julian@FreeBSD.org> | 2008-05-10 15:02:56 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2008-05-10 15:02:56 +0000 |
commit | 816e721312fb4cb2c38886f5f52b0d24668ef539 (patch) | |
tree | f5fd1f8bf41708b948bb6213435ede6900f6ed56 /sbin/ipfw | |
parent | 8e75b5b7e4c299f0e2c5369b3476e648a1fa0488 (diff) | |
download | FreeBSD-src-816e721312fb4cb2c38886f5f52b0d24668ef539.zip FreeBSD-src-816e721312fb4cb2c38886f5f52b0d24668ef539.tar.gz |
Change two variables to size_t to improve portability.
Submitted by: Xin Li
Diffstat (limited to 'sbin/ipfw')
-rw-r--r-- | sbin/ipfw/ipfw2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c index 1a99cb1..9208ff0 100644 --- a/sbin/ipfw/ipfw2.c +++ b/sbin/ipfw/ipfw2.c @@ -4964,11 +4964,12 @@ chkarg: case TOK_SETFIB: { int numfibs; + size_t intsize = sizeof(int); action->opcode = O_SETFIB; NEED1("missing fib number"); action->arg1 = strtoul(*av, NULL, 10); - if (sysctlbyname("net.fibs", &numfibs, &i, NULL, 0) == -1) + if (sysctlbyname("net.fibs", &numfibs, &intsize, NULL, 0) == -1) errx(EX_DATAERR, "fibs not suported.\n"); if (action->arg1 >= numfibs) /* Temporary */ errx(EX_DATAERR, "fib too large.\n"); |