Yang Tse fixed compiler warnings
authorDaniel Stenberg <daniel@haxx.se>
Sun, 13 Nov 2005 23:53:14 +0000 (23:53 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 13 Nov 2005 23:53:14 +0000 (23:53 +0000)
lib/memdebug.h
lib/ssluse.c

index 23b420e2e8d0567882c856110997e66fdc4cacee..4d965fb1f6a830a969e09669cddb09b47fdf8244 100644 (file)
@@ -92,12 +92,15 @@ CURL_EXTERN int curl_fclose(FILE *file, int line, const char *source);
 #define ogetaddrinfo(host,serv,hint,res) \
   curl_dogetaddrinfo(host,serv,hint,res,__LINE__,__FILE__)
 #else
+#undef getaddrinfo
 #define getaddrinfo(host,serv,hint,res) \
   curl_dogetaddrinfo(host,serv,hint,res,__LINE__,__FILE__)
 #endif
+#undef getnameinfo
 #define getnameinfo(sa,salen,host,hostlen,serv,servlen,flags) \
   curl_dogetnameinfo(sa,salen,host,hostlen,serv,servlen,flags, __LINE__, \
   __FILE__)
+#undef freeaddrinfo
 #define freeaddrinfo(data) \
   curl_dofreeaddrinfo(data,__LINE__,__FILE__)
 
index b2bb3bbe4d6247ffc22034d3a2fdf55de989044c..c0cf93664aab9a8ee04755b3214454f70a0076e7 100644 (file)
@@ -1162,7 +1162,7 @@ Curl_ossl_connect(struct connectdata *conn,
 #ifdef SSL_CTRL_SET_MSG_CALLBACK
   if (data->set.fdebug) {
     if (!SSL_CTX_callback_ctrl(connssl->ctx, SSL_CTRL_SET_MSG_CALLBACK,
-                               ssl_tls_trace)) {
+                               (void (*)(void))ssl_tls_trace)) {
       failf(data, "SSL: couldn't set callback!");
       return CURLE_SSL_CONNECT_ERROR;
     }