Use a size_t where a buffer length is meant.

This commit is contained in:
Hartmut Brandt 2003-07-29 13:33:14 +00:00
parent dd937e32bd
commit bfbb5daa0f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118161
2 changed files with 8 additions and 4 deletions

View File

@ -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;
/*

View File

@ -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;
/*