summaryrefslogtreecommitdiffstats
path: root/sys/netatm/uni/unisig_if.c
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-07-29 13:32:10 +0000
committerharti <harti@FreeBSD.org>2003-07-29 13:32:10 +0000
commite57d86c1ec38c63f22ddae8025c1dbc035586faa (patch)
tree676fa306ffbf8bb59c756cf9a9bb95f16ae21cd4 /sys/netatm/uni/unisig_if.c
parent0b9b67134272377bf22b1b9f1092a5da3d74f251 (diff)
downloadFreeBSD-src-e57d86c1ec38c63f22ddae8025c1dbc035586faa.zip
FreeBSD-src-e57d86c1ec38c63f22ddae8025c1dbc035586faa.tar.gz
Make the ioctl() interface cleaner with regard to types: use size_t
instead of int where the variable has to hold buffer lengths, use u_int for things like number of network interfaces which in principle can never be negative.
Diffstat (limited to 'sys/netatm/uni/unisig_if.c')
-rw-r--r--sys/netatm/uni/unisig_if.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netatm/uni/unisig_if.c b/sys/netatm/uni/unisig_if.c
index 9853b8a..30846e1 100644
--- a/sys/netatm/uni/unisig_if.c
+++ b/sys/netatm/uni/unisig_if.c
@@ -822,7 +822,8 @@ unisig_ioctl(code, data, arg1)
struct atm_pif *pip;
Atm_connection *cop;
u_int vpi, vci;
- int err = 0, buf_len, i;
+ int err = 0, i;
+ size_t buf_len;
caddr_t buf_addr;
ATM_DEBUG1("unisig_ioctl: code=%d\n", code);
OpenPOWER on IntegriCloud