From: Yang Tse Date: Sat, 20 Oct 2007 15:47:16 +0000 (+0000) Subject: We use this ZERO_NULL to avoid picky compiler warnings, X-Git-Tag: curl-7_17_1~48 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7fe89c5d29c633ef0777bd5f5689649d1ad7eec7;p=thirdparty%2Fcurl.git We use this ZERO_NULL to avoid picky compiler warnings, when assigning a NULL pointer to a function pointer var. --- diff --git a/lib/url.c b/lib/url.c index e7ef802465..8685c61a25 100644 --- a/lib/url.c +++ b/lib/url.c @@ -683,9 +683,9 @@ CURLcode Curl_open(struct SessionHandle **curl) data->set.fread_func = (curl_read_callback)fread; /* conversion callbacks for non-ASCII hosts */ - data->set.convfromnetwork = (curl_conv_callback)ZERO_NULL; - data->set.convtonetwork = (curl_conv_callback)ZERO_NULL; - data->set.convfromutf8 = (curl_conv_callback)ZERO_NULL; + data->set.convfromnetwork = ZERO_NULL; + data->set.convtonetwork = ZERO_NULL; + data->set.convfromutf8 = ZERO_NULL; #if defined(CURL_DOES_CONVERSIONS) && defined(HAVE_ICONV) /* conversion descriptors for iconv calls */