[net80211] fix up wlanwds to compile without warnings on clang.
This commit is contained in:
parent
7bd8311dec
commit
6da4c4c5c3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=304941
@ -182,7 +182,7 @@ static int
|
||||
getparent(const char *ifname, char parent[IFNAMSIZ+1])
|
||||
{
|
||||
char oid[256];
|
||||
int parentlen;
|
||||
size_t parentlen;
|
||||
|
||||
/* fetch parent interface name */
|
||||
snprintf(oid, sizeof(oid), "net.wlan.%s.%%parent", ifname+4);
|
||||
@ -239,7 +239,7 @@ iswdsvap(int s, const char *ifname)
|
||||
* to have already verified this is possible.
|
||||
*/
|
||||
static void
|
||||
getbssid(int s, const char *ifname, char bssid[IEEE80211_ADDR_LEN])
|
||||
getbssid(int s, const char *ifname, uint8_t bssid[IEEE80211_ADDR_LEN])
|
||||
{
|
||||
struct ieee80211req ireq;
|
||||
|
||||
@ -261,7 +261,7 @@ static void
|
||||
scanforvaps(int s)
|
||||
{
|
||||
char ifname[IFNAMSIZ+1];
|
||||
char bssid[IEEE80211_ADDR_LEN];
|
||||
uint8_t bssid[IEEE80211_ADDR_LEN];
|
||||
int i;
|
||||
|
||||
/* XXX brutal; should just walk sysctl tree */
|
||||
|
Loading…
Reference in New Issue
Block a user