diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-03-08 10:47:29 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-03-08 16:13:05 +0100 |
commit | eb910b872edbf5cec7e877ba899e192f1dac8991 (patch) | |
tree | edd7c79fb78403509d1d1ec2accfda199dc49097 /tests/libtest/first.c | |
parent | 5114f82331440eadc9299700490f14c7352c908d (diff) | |
download | curl-bagder/curldbg-prefix.tar.gz |
memdebug: make debug-specific functions use curl_dbg_ prefixbagder/curldbg-prefix
To not "collide" or use up the regular curl_ name space. Also makes them
easier to detect in helper scripts.
Closes #3656
Diffstat (limited to 'tests/libtest/first.c')
-rw-r--r-- | tests/libtest/first.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/libtest/first.c b/tests/libtest/first.c index 405e6f84a..d687bf276 100644 --- a/tests/libtest/first.c +++ b/tests/libtest/first.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2019, 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 @@ -96,7 +96,7 @@ static void memory_tracking_init(void) env[CURL_MT_LOGFNAME_BUFSIZE-1] = '\0'; strcpy(fname, env); curl_free(env); - curl_memdebug(fname); + curl_dbg_memdebug(fname); /* this weird stuff here is to make curl_free() get called before curl_memdebug() as otherwise memory tracking will log a free() without an alloc! */ @@ -107,7 +107,7 @@ static void memory_tracking_init(void) char *endptr; long num = strtol(env, &endptr, 10); if((endptr != env) && (endptr == env + strlen(env)) && (num > 0)) - curl_memlimit(num); + curl_dbg_memlimit(num); curl_free(env); } } |