diff options
author | Yang Tse <yangsita@gmail.com> | 2007-10-20 15:47:16 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-10-20 15:47:16 +0000 |
commit | 7fe89c5d29c633ef0777bd5f5689649d1ad7eec7 (patch) | |
tree | 65abb6fc882a94b097db2bfdeace72ef13aa3077 | |
parent | 5c8fc7dce9668a141a01781159817552a7cb4ef8 (diff) |
We use this ZERO_NULL to avoid picky compiler warnings,
when assigning a NULL pointer to a function pointer var.
-rw-r--r-- | lib/url.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 */ |