diff options
author | Thomas Haller <thaller@redhat.com> | 2019-02-21 09:04:25 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-02-22 10:05:00 +0100 |
commit | 08bc38cb5c3efe57cf37d251e81d695005cbff48 (patch) | |
tree | d9c316997267affab92e56a79602d58ba7d25485 /src | |
parent | 60e4595101fd3f0ce6193ef87320c94641779708 (diff) | |
download | NetworkManager-08bc38cb5c3efe57cf37d251e81d695005cbff48.tar.gz |
platform/wifi: don't use __u32 type in "nm-wifi-utils-nl80211.c"
Also, use unsignd (guint) variable as index. That is fine, because
nla_len() returns a (signed) int.
Diffstat (limited to 'src')
-rw-r--r-- | src/platform/wifi/nm-wifi-utils-nl80211.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/platform/wifi/nm-wifi-utils-nl80211.c b/src/platform/wifi/nm-wifi-utils-nl80211.c index 0e6efcfc48..4f7ede9757 100644 --- a/src/platform/wifi/nm-wifi-utils-nl80211.c +++ b/src/platform/wifi/nm-wifi-utils-nl80211.c @@ -856,11 +856,10 @@ static int nl80211_wiphy_info_handler (struct nl_msg *msg, void *arg) /* Read security/encryption support */ if (tb[NL80211_ATTR_CIPHER_SUITES]) { - int num; - int i; - __u32 *ciphers = nla_data (tb[NL80211_ATTR_CIPHER_SUITES]); + guint32 *ciphers = nla_data (tb[NL80211_ATTR_CIPHER_SUITES]); + guint i, num; - num = nla_len (tb[NL80211_ATTR_CIPHER_SUITES]) / sizeof (__u32); + num = nla_len (tb[NL80211_ATTR_CIPHER_SUITES]) / sizeof (guint32); for (i = 0; i < num; i++) { switch (ciphers[i]) { case WLAN_CIPHER_SUITE_WEP40: |