diff options
author | harti <harti@FreeBSD.org> | 2003-07-29 13:33:14 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2003-07-29 13:33:14 +0000 |
commit | 7708c2e2d094277a614ab5b842d23b184a061584 (patch) | |
tree | 7b42dfd7cb644a2edcb1edbf033e62e6edbe2d9a /sys/dev/hea | |
parent | e57d86c1ec38c63f22ddae8025c1dbc035586faa (diff) | |
download | FreeBSD-src-7708c2e2d094277a614ab5b842d23b184a061584.zip FreeBSD-src-7708c2e2d094277a614ab5b842d23b184a061584.tar.gz |
Use a size_t where a buffer length is meant.
Diffstat (limited to 'sys/dev/hea')
-rw-r--r-- | sys/dev/hea/eni_if.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/hea/eni_if.c b/sys/dev/hea/eni_if.c index f4cd5d7..6355fe8 100644 --- a/sys/dev/hea/eni_if.c +++ b/sys/dev/hea/eni_if.c @@ -194,7 +194,9 @@ eni_atm_ioctl ( code, data, arg ) Eni_unit *eup = (Eni_unit *)pip; caddr_t buf = aip->air_buf_addr; struct air_vinfo_rsp *avr; - int count, len, buf_len = aip->air_buf_len; + size_t len; + size_t count; + size_t buf_len = aip->air_buf_len; int err = 0; char ifname[2*IFNAMSIZ]; @@ -264,7 +266,7 @@ eni_atm_ioctl ( code, data, arg ) /* * Record amount we're returning as vendor info... */ - if ((err = copyout(&count, &avr->avsp_len, sizeof(int))) != 0) + if ((err = copyout(&count, &avr->avsp_len, sizeof(count))) != 0) break; /* |