mirror of
https://github.com/curl/curl.git
synced 2025-02-17 14:59:45 +08: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:
parent
b73b423ba0
commit
c69cafe7e2
@ -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
|
||||
)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user