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 | |
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')
-rw-r--r-- | sys/dev/hea/eni_if.c | 6 | ||||
-rw-r--r-- | sys/dev/hfa/fore_if.c | 6 |
2 files changed, 8 insertions, 4 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; /* diff --git a/sys/dev/hfa/fore_if.c b/sys/dev/hfa/fore_if.c index 0859438..1728f99 100644 --- a/sys/dev/hfa/fore_if.c +++ b/sys/dev/hfa/fore_if.c @@ -89,7 +89,9 @@ fore_atm_ioctl(code, data, arg) Fore_unit *fup; caddr_t buf = aip->air_buf_addr; struct air_vinfo_rsp *avr; - int count, len, buf_len = aip->air_buf_len; + size_t count; + size_t len; + size_t buf_len = aip->air_buf_len; int err = 0; char ifname[2*IFNAMSIZ]; @@ -165,7 +167,7 @@ fore_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; /* |