summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-06-07 13:50:33 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-06-07 14:36:00 +0200
commitee8aa7e71a05c317107a3c115047fb28611b3dc2 (patch)
treeea462be8609e13ffdaf6882a8571b8dfc6e917e6
parent2ab48ba5e9d86ac83142c972331c7377059572ee (diff)
downloadcurl-ee8aa7e71a05c317107a3c115047fb28611b3dc2.tar.gz
curlx: remove curlx_getenv(), use curl_getenv()
-rw-r--r--lib/curlx.h2
-rw-r--r--src/tool_cb_hdr.c2
-rw-r--r--src/tool_cb_prg.c4
-rw-r--r--src/tool_main.c6
-rw-r--r--src/tool_operate.c6
-rw-r--r--src/tool_operhlp.c4
6 files changed, 11 insertions, 13 deletions
diff --git a/lib/curlx.h b/lib/curlx.h
index e2dc7d868..35f0252c8 100644
--- a/lib/curlx.h
+++ b/lib/curlx.h
@@ -52,14 +52,12 @@
/* Now setup curlx_ * names for the functions that are to become curlx_ and
be removed from a future libcurl official API:
- curlx_getenv
curlx_mprintf (and its variations)
curlx_strcasecompare
curlx_strncasecompare
*/
-#define curlx_getenv curl_getenv
#define curlx_mvsnprintf curl_mvsnprintf
#define curlx_msnprintf curl_msnprintf
#define curlx_maprintf curl_maprintf
diff --git a/src/tool_cb_hdr.c b/src/tool_cb_hdr.c
index 0e13eec50..2a400a4fd 100644
--- a/src/tool_cb_hdr.c
+++ b/src/tool_cb_hdr.c
@@ -220,7 +220,7 @@ static char *parse_filename(const char *ptr, size_t len)
*/
#ifdef DEBUGBUILD
{
- char *tdir = curlx_getenv("CURL_TESTDIR");
+ char *tdir = curl_getenv("CURL_TESTDIR");
if(tdir) {
char buffer[512]; /* suitably large */
snprintf(buffer, sizeof(buffer), "%s/%s", tdir, copy);
diff --git a/src/tool_cb_prg.c b/src/tool_cb_prg.c
index d4ecb3cef..a548e64dc 100644
--- a/src/tool_cb_prg.c
+++ b/src/tool_cb_prg.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -123,7 +123,7 @@ void progressbarinit(struct ProgressData *bar,
/* 20000318 mgs
* OS/2 users most likely won't have this env var set, and besides that
* we're using our own way to determine screen width */
- colp = curlx_getenv("COLUMNS");
+ colp = curl_getenv("COLUMNS");
if(colp) {
char *endptr;
long num = strtol(colp, &endptr, 10);
diff --git a/src/tool_main.c b/src/tool_main.c
index 7e742ffca..f162425de 100644
--- a/src/tool_main.c
+++ b/src/tool_main.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -94,7 +94,7 @@ static void memory_tracking_init(void)
{
char *env;
/* if CURL_MEMDEBUG is set, this starts memory tracking message logging */
- env = curlx_getenv("CURL_MEMDEBUG");
+ env = curl_getenv("CURL_MEMDEBUG");
if(env) {
/* use the value as file name */
char fname[CURL_MT_LOGFNAME_BUFSIZE];
@@ -108,7 +108,7 @@ static void memory_tracking_init(void)
log a free() without an alloc! */
}
/* if CURL_MEMLIMIT is set, this enables fail-on-alloc-number-N feature */
- env = curlx_getenv("CURL_MEMLIMIT");
+ env = curl_getenv("CURL_MEMLIMIT");
if(env) {
char *endptr;
long num = strtol(env, &endptr, 10);
diff --git a/src/tool_operate.c b/src/tool_operate.c
index 6f1525e8b..b6d9646b9 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -316,7 +316,7 @@ static CURLcode operate_do(struct GlobalConfig *global,
!config->capath &&
!config->insecure_ok) {
char *env;
- env = curlx_getenv("CURL_CA_BUNDLE");
+ env = curl_getenv("CURL_CA_BUNDLE");
if(env) {
config->cacert = strdup(env);
if(!config->cacert) {
@@ -327,7 +327,7 @@ static CURLcode operate_do(struct GlobalConfig *global,
}
}
else {
- env = curlx_getenv("SSL_CERT_DIR");
+ env = curl_getenv("SSL_CERT_DIR");
if(env) {
config->capath = strdup(env);
if(!config->capath) {
@@ -339,7 +339,7 @@ static CURLcode operate_do(struct GlobalConfig *global,
capath_from_env = true;
}
else {
- env = curlx_getenv("SSL_CERT_FILE");
+ env = curl_getenv("SSL_CERT_FILE");
if(env) {
config->cacert = strdup(env);
if(!config->cacert) {
diff --git a/src/tool_operhlp.c b/src/tool_operhlp.c
index 21b5ffe77..dcb8948b9 100644
--- a/src/tool_operhlp.c
+++ b/src/tool_operhlp.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2014, 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -173,7 +173,7 @@ CURLcode get_url_file_name(char **filename, const char *url)
*/
#ifdef DEBUGBUILD
{
- char *tdir = curlx_getenv("CURL_TESTDIR");
+ char *tdir = curl_getenv("CURL_TESTDIR");
if(tdir) {
char buffer[512]; /* suitably large */
snprintf(buffer, sizeof(buffer), "%s/%s", tdir, *filename);