]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
mesh: Convert Boolean to C99 bool
authorJouni Malinen <jouni@codeaurora.org>
Thu, 23 Apr 2020 22:40:03 +0000 (01:40 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 24 Apr 2020 14:06:50 +0000 (17:06 +0300)
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/mesh_mpm.c

index 4925b5cdeca8e65e31cc3f6ce1eee71bcc7a4c22..12aafcb9704642ffefbaee1caf4b33dd308c2fb2 100644 (file)
@@ -147,13 +147,13 @@ static u16 copy_supp_rates(struct wpa_supplicant *wpa_s,
 
 
 /* return true if elems from a neighbor match this MBSS */
-static Boolean matches_local(struct wpa_supplicant *wpa_s,
-                            struct ieee802_11_elems *elems)
+static bool matches_local(struct wpa_supplicant *wpa_s,
+                         struct ieee802_11_elems *elems)
 {
        struct mesh_conf *mconf = wpa_s->ifmsh->mconf;
 
        if (elems->mesh_config_len < 5)
-               return FALSE;
+               return false;
 
        return (mconf->meshid_len == elems->mesh_id_len &&
                os_memcmp(mconf->meshid, elems->mesh_id,
@@ -167,17 +167,17 @@ static Boolean matches_local(struct wpa_supplicant *wpa_s,
 
 
 /* check if local link id is already used with another peer */
-static Boolean llid_in_use(struct wpa_supplicant *wpa_s, u16 llid)
+static bool llid_in_use(struct wpa_supplicant *wpa_s, u16 llid)
 {
        struct sta_info *sta;
        struct hostapd_data *hapd = wpa_s->ifmsh->bss[0];
 
        for (sta = hapd->sta_list; sta; sta = sta->next) {
                if (sta->my_lid == llid)
-                       return TRUE;
+                       return true;
        }
 
-       return FALSE;
+       return false;
 }