diff options
author | Yang Tse <yangsita@gmail.com> | 2007-10-17 16:58:32 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-10-17 16:58:32 +0000 |
commit | 92433e596b7fbfa5c75926705dcfef0080ebf012 (patch) | |
tree | 9dc076641396934683d15b962395dc6f11d36d5f /lib/http.c | |
parent | 5360f88393c91758ed0f29fa65a9b15716589aa1 (diff) | |
download | curl-92433e596b7fbfa5c75926705dcfef0080ebf012.tar.gz |
We use this ZERO_NULL to avoid picky compiler warnings,
when assigning a NULL pointer to a function pointer var.
Diffstat (limited to 'lib/http.c')
-rw-r--r-- | lib/http.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/http.c b/lib/http.c index d3954338f..b32ca1d5b 100644 --- a/lib/http.c +++ b/lib/http.c @@ -121,16 +121,16 @@ static int Curl_https_getsock(struct connectdata *conn, */ const struct Curl_handler Curl_handler_http = { "HTTP", /* scheme */ - NULL, /* setup_connection */ + ZERO_NULL, /* setup_connection */ Curl_http, /* do_it */ Curl_http_done, /* done */ - NULL, /* do_more */ + ZERO_NULL, /* do_more */ Curl_http_connect, /* connect_it */ - NULL, /* connecting */ - NULL, /* doing */ - NULL, /* proto_getsock */ - NULL, /* doing_getsock */ - NULL, /* disconnect */ + ZERO_NULL, /* connecting */ + ZERO_NULL, /* doing */ + ZERO_NULL, /* proto_getsock */ + ZERO_NULL, /* doing_getsock */ + ZERO_NULL, /* disconnect */ PORT_HTTP, /* defport */ PROT_HTTP, /* protocol */ }; @@ -141,16 +141,16 @@ const struct Curl_handler Curl_handler_http = { */ const struct Curl_handler Curl_handler_https = { "HTTPS", /* scheme */ - NULL, /* setup_connection */ + ZERO_NULL, /* setup_connection */ Curl_http, /* do_it */ Curl_http_done, /* done */ - NULL, /* do_more */ + ZERO_NULL, /* do_more */ Curl_http_connect, /* connect_it */ Curl_https_connecting, /* connecting */ - NULL, /* doing */ + ZERO_NULL, /* doing */ Curl_https_getsock, /* proto_getsock */ - NULL, /* doing_getsock */ - NULL, /* disconnect */ + ZERO_NULL, /* doing_getsock */ + ZERO_NULL, /* disconnect */ PORT_HTTPS, /* defport */ PROT_HTTP | PROT_HTTPS | PROT_SSL /* protocol */ }; |