]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
strdup: name it Curl_strdup
authorDaniel Stenberg <daniel@haxx.se>
Thu, 22 Dec 2022 09:15:38 +0000 (10:15 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 22 Dec 2022 13:31:37 +0000 (14:31 +0100)
It does not belong in the curlx_ name space as it is never used
externally.

Closes #10132

lib/easy.c
lib/strdup.c
lib/strdup.h

index d7f93be1e0e98d795f2b843fd3dec45b0a526920..d7da09601609ae45614c5d720bc2c3b775d93a50 100644 (file)
@@ -113,7 +113,7 @@ static curl_simple_lock s_lock = CURL_SIMPLE_LOCK_INIT;
 #if defined(_WIN32_WCE)
 #define system_strdup _strdup
 #elif !defined(HAVE_STRDUP)
-#define system_strdup curlx_strdup
+#define system_strdup Curl_strdup
 #else
 #define system_strdup strdup
 #endif
index ac22b6ddafe0de039c7f6314cd089dfb290ebeb7..45cbb0c03b8975d67d0a6eb1cb74b5ecb8050d78 100644 (file)
@@ -37,7 +37,7 @@
 #include "memdebug.h"
 
 #ifndef HAVE_STRDUP
-char *curlx_strdup(const char *str)
+char *Curl_strdup(const char *str)
 {
   size_t len;
   char *newstr;
index fb46808b8386efa78c4ba4c31739a679062c22f9..609911f63b37f9c4e42ff277823ebc45b0b8df84 100644 (file)
@@ -26,7 +26,7 @@
 #include "curl_setup.h"
 
 #ifndef HAVE_STRDUP
-extern char *curlx_strdup(const char *str);
+char *Curl_strdup(const char *str);
 #endif
 #ifdef WIN32
 wchar_t* Curl_wcsdup(const wchar_t* src);