From e4505a1915f1bfae71b06636f0690fae2c53c78e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 22 Dec 2022 10:15:38 +0100 Subject: [PATCH] strdup: name it Curl_strdup It does not belong in the curlx_ name space as it is never used externally. Closes #10132 --- lib/easy.c | 2 +- lib/strdup.c | 2 +- lib/strdup.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/easy.c b/lib/easy.c index d7f93be1e0..d7da096016 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -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 diff --git a/lib/strdup.c b/lib/strdup.c index ac22b6ddaf..45cbb0c03b 100644 --- a/lib/strdup.c +++ b/lib/strdup.c @@ -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; diff --git a/lib/strdup.h b/lib/strdup.h index fb46808b83..609911f63b 100644 --- a/lib/strdup.h +++ b/lib/strdup.h @@ -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); -- 2.47.3