]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Return NULL instead of 0 as the pointer on error case
authorJouni Malinen <jouni.malinen@atheros.com>
Fri, 8 Apr 2011 16:16:20 +0000 (19:16 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 8 Apr 2011 16:16:20 +0000 (19:16 +0300)
wpa_supplicant/events.c

index f94fc64b13ac791db7a5989ccc17bad4a87e10fd..7198e1dedb3239d466a518b34dcf792ead75ddd6 100644 (file)
@@ -505,13 +505,13 @@ static struct wpa_ssid * wpa_scan_res_match(struct wpa_supplicant *wpa_s,
                if (e->count > limit) {
                        wpa_dbg(wpa_s, MSG_DEBUG, "   skip - blacklisted "
                                "(count=%d limit=%d)", e->count, limit);
-                       return 0;
+                       return NULL;
                }
        }
 
        if (ssid_len == 0) {
                wpa_dbg(wpa_s, MSG_DEBUG, "   skip - SSID not known");
-               return 0;
+               return NULL;
        }
 
        wpa = wpa_ie_len > 0 || rsn_ie_len > 0;
@@ -602,7 +602,7 @@ static struct wpa_ssid * wpa_scan_res_match(struct wpa_supplicant *wpa_s,
        }
 
        /* No matching configuration found */
-       return 0;
+       return NULL;
 }