svn commit: r304941 - head/tools/tools/net80211/wlanwds
Adrian Chadd
adrian at FreeBSD.org
Sun Aug 28 04:54:04 UTC 2016
Author: adrian
Date: Sun Aug 28 04:54:02 2016
New Revision: 304941
URL: https://svnweb.freebsd.org/changeset/base/304941
Log:
[net80211] fix up wlanwds to compile without warnings on clang.
Modified:
head/tools/tools/net80211/wlanwds/wlanwds.c
Modified: head/tools/tools/net80211/wlanwds/wlanwds.c
==============================================================================
--- head/tools/tools/net80211/wlanwds/wlanwds.c Sun Aug 28 04:40:27 2016 (r304940)
+++ head/tools/tools/net80211/wlanwds/wlanwds.c Sun Aug 28 04:54:02 2016 (r304941)
@@ -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 */
More information about the svn-src-head
mailing list