diff options
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 28 |
1 files changed, 10 insertions, 18 deletions
@@ -175,14 +175,6 @@ static void flush_cookies(struct SessionHandle *data, int cleanup); #define MAX_PIPELINE_LENGTH 5 -/* - * We use this ZERO_NULL to avoid picky compiler warnings, - * when assigning a NULL pointer to a function pointer var. - */ - -#define ZERO_NULL 0 - - #ifndef USE_ARES /* not for ares builds */ @@ -268,16 +260,16 @@ static const struct Curl_handler * const protocols[] = { static const struct Curl_handler Curl_handler_dummy = { "<no protocol>", /* scheme */ - NULL, /* setup_connection */ - NULL, /* do_it */ - NULL, /* done */ - NULL, /* do_more */ - NULL, /* connect_it */ - NULL, /* connecting */ - NULL, /* doing */ - NULL, /* proto_getsock */ - NULL, /* doing_getsock */ - NULL, /* disconnect */ + ZERO_NULL, /* setup_connection */ + ZERO_NULL, /* do_it */ + ZERO_NULL, /* done */ + ZERO_NULL, /* do_more */ + ZERO_NULL, /* connect_it */ + ZERO_NULL, /* connecting */ + ZERO_NULL, /* doing */ + ZERO_NULL, /* proto_getsock */ + ZERO_NULL, /* doing_getsock */ + ZERO_NULL, /* disconnect */ 0, /* defport */ 0 /* protocol */ }; |