]> granicus.if.org Git - curl/commitdiff
memdebug: bring back curl_mark_sclose
authorDaniel Stenberg <daniel@haxx.se>
Thu, 14 Feb 2019 16:34:55 +0000 (17:34 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 14 Feb 2019 16:34:55 +0000 (17:34 +0100)
Used by debug builds with NSS.

Reverted from 05b100aee247bb

lib/memdebug.c

index 08d8d4f92db2c91f6ca364f2a957727a78df14cd..4a4f556eb474a21743dbd839dd6458df9c7bb845 100644 (file)
@@ -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;
 }