summaryrefslogtreecommitdiffstats
path: root/sys/dev/hfa
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-07-29 13:33:14 +0000
committerharti <harti@FreeBSD.org>2003-07-29 13:33:14 +0000
commit7708c2e2d094277a614ab5b842d23b184a061584 (patch)
tree7b42dfd7cb644a2edcb1edbf033e62e6edbe2d9a /sys/dev/hfa
parente57d86c1ec38c63f22ddae8025c1dbc035586faa (diff)
downloadFreeBSD-src-7708c2e2d094277a614ab5b842d23b184a061584.zip
FreeBSD-src-7708c2e2d094277a614ab5b842d23b184a061584.tar.gz
Use a size_t where a buffer length is meant.
Diffstat (limited to 'sys/dev/hfa')
-rw-r--r--sys/dev/hfa/fore_if.c6
1 files changed, 4 insertions, 2 deletions
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;
/*
OpenPOWER on IntegriCloud