summaryrefslogtreecommitdiffstats
path: root/sys/netatm/atm_usrreq.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/atm_usrreq.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/atm_usrreq.c')
-rw-r--r--sys/netatm/atm_usrreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netatm/atm_usrreq.c b/sys/netatm/atm_usrreq.c
index 5a96ca6..ffb9a94 100644
--- a/sys/netatm/atm_usrreq.c
+++ b/sys/netatm/atm_usrreq.c
@@ -382,7 +382,7 @@ atm_dgram_control(so, cmd, data, ifp, td)
* Validate interface count - logical interfaces
* are differentiated by the atm address selector.
*/
- if ((asp->asr_nif_cnt <= 0) || (asp->asr_nif_cnt > 256))
+ if (asp->asr_nif_cnt == 0 || asp->asr_nif_cnt > 256)
ATM_RETERR(EINVAL);
/*
OpenPOWER on IntegriCloud