9ns: change parsecmd()'s size arg's type to size_t
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 21 May 2019 03:05:26 +0000 (23:05 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 21 May 2019 03:05:26 +0000 (23:05 -0400)
commitf944e190e2c79ee3221c70770348ddff2294ad14
tree04694429406d1a5bc3c1581644b7a36543eb35f3
parent525b58af82b289e2bea1c11731cec51c9d1235b4
9ns: change parsecmd()'s size arg's type to size_t

This is a leftover from Inferno/Plan 9, where ints are scattered about
where we should use a size_t.  Longs are a little better (64 bit vs 32),
but are still signed.

This commit changes parsecmd() and all of its callers.  Beyond the
ether->ctl and whatnot, there probably are other users who still convert
length to an int, which can cause problems.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
12 files changed:
kern/drivers/dev/ether.c
kern/drivers/dev/proc.c
kern/drivers/net/bnx2x/bnx2x_dev.c
kern/drivers/net/ether82563.c
kern/drivers/net/etherigbe.c
kern/drivers/net/mlx4/main.c
kern/drivers/net/r8169.c
kern/include/net/ip.h
kern/include/ns.h
kern/src/net/iproute.c
kern/src/net/netlog.c
kern/src/ns/parse.c