]> git.feebdaed.xyz Git - 0xmirror/curl.git/commitdiff
getenv: drop internal 1-to-1 wrapper
authorViktor Szakats <commit@vsz.me>
Mon, 15 Dec 2025 12:19:30 +0000 (13:19 +0100)
committerViktor Szakats <commit@vsz.me>
Mon, 15 Dec 2025 23:21:38 +0000 (00:21 +0100)
Closes #19984

lib/getenv.c

index 73c62d99cd23d18664f2cf8622bebb782211ed1c..e10688adb32d3f525a0780a62fe77ff890dea6aa 100644 (file)
@@ -26,7 +26,7 @@
 
 #include <curl/curl.h>
 
-static char *GetEnv(const char *variable)
+char *curl_getenv(const char *variable)
 {
 #if defined(CURL_WINDOWS_UWP) || \
   defined(__ORBIS__) || defined(__PROSPERO__) /* PlayStation 4 and 5 */
@@ -70,8 +70,3 @@ static char *GetEnv(const char *variable)
   return (env && env[0]) ? curlx_strdup(env) : NULL;
 #endif
 }
-
-char *curl_getenv(const char *v)
-{
-  return GetEnv(v);
-}