From cd3bc1457bcb4f22c232a5808fb895c2798ca164 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 15 Aug 2014 11:53:14 +0200 Subject: geoip: Use NULL instead of integer to initialize pointers Fixes the following sparse warnings: geoip.c:76:30: warning: Using plain integer as NULL pointer geoip.c:78:30: warning: Using plain integer as NULL pointer Signed-off-by: Tobias Klauser --- geoip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'geoip.c') diff --git a/geoip.c b/geoip.c index b1ddeeb..0d5a4ed 100644 --- a/geoip.c +++ b/geoip.c @@ -73,9 +73,9 @@ static GeoIP *gi4_asname = NULL, *gi6_asname = NULL; static GeoIP *gi4_country = NULL, *gi6_country = NULL; static GeoIP *gi4_city = NULL, *gi6_city = NULL; -static GeoIPRecord empty = { 0 }; +static GeoIPRecord empty = { NULL }; -static char *servers[16] = { 0 }; +static char *servers[16] = { NULL }; #define CITYV4 (1 << 0) #define CITYV6 (1 << 1) -- cgit v1.2.3-54-g00ecf 11ac5285e6be8967713271a51bdc5a936a'/> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
ModeNameSize