From: Jouni Malinen Date: Fri, 8 Apr 2011 16:16:20 +0000 (+0300) Subject: Return NULL instead of 0 as the pointer on error case X-Git-Tag: hostap-1-bp~425 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2197bc9bcec707f7844bf64352414706b071879;p=thirdparty%2Fhostap.git Return NULL instead of 0 as the pointer on error case --- diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index f94fc64b1..7198e1ded 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -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; }