]> granicus.if.org Git - curl/commitdiff
connect: fix #ifdefs for debug versions of conn/streamclose() macros
authorDaniel Stenberg <daniel@haxx.se>
Tue, 30 Aug 2016 21:38:06 +0000 (23:38 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 30 Aug 2016 21:38:06 +0000 (23:38 +0200)
CURLDEBUG is for the memory debugging

DEBUGBUILD is for the extra debug stuff

Pointed-out-by: Steve Holme
lib/connect.c
lib/connect.h

index eca817c357f9628f2ca9c23e7665e23dc65df094..3225d70cf864354c927ac273b21ca4da6b62c76f 100644 (file)
@@ -1376,7 +1376,7 @@ CURLcode Curl_socket(struct connectdata *conn,
  */
 void Curl_conncontrol(struct connectdata *conn,
                       int ctrl /* see defines in header */
-#ifdef CURLDEBUG
+#ifdef DEBUGBUILD
                       , const char *reason
 #endif
   )
index c3e43cf66a34a30c9ebfa7543e2259242a2a929c..a7cbc9bc2844e86202647a31ce248b9d29489d73 100644 (file)
@@ -122,12 +122,12 @@ void Curl_tcpnodelay(struct connectdata *conn, curl_socket_t sockfd);
 
 void Curl_conncontrol(struct connectdata *conn,
                       int closeit
-#ifdef CURLDEBUG
+#ifdef DEBUGBUILD
                       , const char *reason
 #endif
   );
 
-#ifdef CURLDEBUG
+#ifdef DEBUGBUILD
 #define streamclose(x,y) Curl_conncontrol(x, CONNCTRL_STREAM, y)
 #define connclose(x,y) Curl_conncontrol(x, CONNCTRL_CONNECTION, y)
 #define connkeep(x,y) Curl_conncontrol(x, CONNCTRL_KEEP, y)