From: Daniel Stenberg Date: Tue, 30 Aug 2016 21:38:06 +0000 (+0200) Subject: connect: fix #ifdefs for debug versions of conn/streamclose() macros X-Git-Tag: curl-7_50_2~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c69cafe7e260144142f8cc89f74c5b3dc8294451;p=curl connect: fix #ifdefs for debug versions of conn/streamclose() macros CURLDEBUG is for the memory debugging DEBUGBUILD is for the extra debug stuff Pointed-out-by: Steve Holme --- diff --git a/lib/connect.c b/lib/connect.c index eca817c35..3225d70cf 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -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 ) diff --git a/lib/connect.h b/lib/connect.h index c3e43cf66..a7cbc9bc2 100644 --- a/lib/connect.h +++ b/lib/connect.h @@ -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)