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,
int ctrl /* see defines in header */
#ifdef CURLDEBUG
#ifdef DEBUGBUILD
, const char *reason
#endif
)

View 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)