diff options
Diffstat (limited to 'sys/dev/hfa')
-rw-r--r-- | sys/dev/hfa/fore_if.c | 6 |
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; /* |