summaryrefslogtreecommitdiff
path: root/lib/memdebug.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-02-14 17:34:55 +0100
committerDaniel Stenberg <daniel@haxx.se>2019-02-14 17:34:55 +0100
commit49d73d40f6118cbe10e60ff0351fad30bf4cde2b (patch)
treec4cc45fbc81773aa145249b065e1c3b9f314bbd4 /lib/memdebug.c
parent539d17b0de923b9a122f551fddac2a82ed95d9b2 (diff)
downloadcurl-49d73d40f6118cbe10e60ff0351fad30bf4cde2b.tar.gz
memdebug: bring back curl_mark_sclose
Used by debug builds with NSS. Reverted from 05b100aee247bb
Diffstat (limited to 'lib/memdebug.c')
-rw-r--r--lib/memdebug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/memdebug.c b/lib/memdebug.c
index 08d8d4f92..4a4f556eb 100644
--- a/lib/memdebug.c
+++ b/lib/memdebug.c
@@ -426,7 +426,7 @@ curl_socket_t curl_accept(curl_socket_t s, void *saddr, void *saddrlen,
}
/* separate function to allow libcurl to mark a "faked" close */
-static void mark_sclose(curl_socket_t sockfd, int line, const char *source)
+void curl_mark_sclose(curl_socket_t sockfd, int line, const char *source)
{
const char *fmt = (sizeof(curl_socket_t) == sizeof(int)) ?
"FD %s:%d sclose(%d)\n":
@@ -442,7 +442,7 @@ static void mark_sclose(curl_socket_t sockfd, int line, const char *source)
int curl_sclose(curl_socket_t sockfd, int line, const char *source)
{
int res = sclose(sockfd);
- mark_sclose(sockfd, line, source);
+ curl_mark_sclose(sockfd, line, source);
return res;
}