1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

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
This commit is contained in:
Daniel Stenberg 2016-08-30 23:38:06 +02:00
parent b73b423ba0
commit c69cafe7e2
2 changed files with 3 additions and 3 deletions

View File

@ -1376,7 +1376,7 @@ CURLcode Curl_socket(struct connectdata *conn,
*/ */
void Curl_conncontrol(struct connectdata *conn, void Curl_conncontrol(struct connectdata *conn,
int ctrl /* see defines in header */ int ctrl /* see defines in header */
#ifdef CURLDEBUG #ifdef DEBUGBUILD
, const char *reason , const char *reason
#endif #endif
) )

View File

@ -122,12 +122,12 @@ void Curl_tcpnodelay(struct connectdata *conn, curl_socket_t sockfd);
void Curl_conncontrol(struct connectdata *conn, void Curl_conncontrol(struct connectdata *conn,
int closeit int closeit
#ifdef CURLDEBUG #ifdef DEBUGBUILD
, const char *reason , const char *reason
#endif #endif
); );
#ifdef CURLDEBUG #ifdef DEBUGBUILD
#define streamclose(x,y) Curl_conncontrol(x, CONNCTRL_STREAM, y) #define streamclose(x,y) Curl_conncontrol(x, CONNCTRL_STREAM, y)
#define connclose(x,y) Curl_conncontrol(x, CONNCTRL_CONNECTION, y) #define connclose(x,y) Curl_conncontrol(x, CONNCTRL_CONNECTION, y)
#define connkeep(x,y) Curl_conncontrol(x, CONNCTRL_KEEP, y) #define connkeep(x,y) Curl_conncontrol(x, CONNCTRL_KEEP, y)