diff options
Diffstat (limited to 'usr.sbin/wpa')
-rw-r--r-- | usr.sbin/wpa/wpa_supplicant/Packet32.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/wpa/wpa_supplicant/Packet32.c b/usr.sbin/wpa/wpa_supplicant/Packet32.c index 3334bbf..d689489 100644 --- a/usr.sbin/wpa/wpa_supplicant/Packet32.c +++ b/usr.sbin/wpa/wpa_supplicant/Packet32.c @@ -246,15 +246,15 @@ PacketGetAdapterNames(namelist, len) mib[5] = 0; /* no flags */ if (sysctl (mib, 6, NULL, &needed, NULL, 0) < 0) - return(EIO); + return(FALSE); buf = malloc (needed); if (buf == NULL) - return(ENOMEM); + return(FALSE); if (sysctl (mib, 6, buf, &needed, NULL, 0) < 0) { free(buf); - return(EIO); + return(FALSE); } lim = buf + needed; @@ -269,7 +269,7 @@ PacketGetAdapterNames(namelist, len) if (strnstr(sdl->sdl_data, "ndis", sdl->sdl_nlen)) { if ((spc + sdl->sdl_nlen) > *len) { free(buf); - return(ENOSPC); + return(FALSE); } strncpy(plist, sdl->sdl_data, sdl->sdl_nlen); plist += (sdl->sdl_nlen + 1); @@ -302,7 +302,7 @@ PacketGetAdapterNames(namelist, len) if (strnstr(sdl->sdl_data, "ndis", sdl->sdl_nlen)) { if ((spc + sdl->sdl_nlen) > *len) { free(buf); - return(ENOSPC); + return(FALSE); } strncpy(plist, sdl->sdl_data, sdl->sdl_nlen); plist += (sdl->sdl_nlen + 1); @@ -317,7 +317,7 @@ PacketGetAdapterNames(namelist, len) *len = spc + 1; - return(0); + return(TRUE); } void |