10000 tests: stop using libcurl's strdup by bagder · Pull Request #17297 · curl/curl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tests: stop using libcurl's strdup #17297

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions tests/server/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ CURLX_SRCS = \
../../lib/curlx/timeval.c \
../../lib/curlx/dynbuf.c \
../../lib/strcase.c \
../../lib/strdup.c \
../../lib/curlx/multibyte.c \
../../lib/curlx/version_win32.c

Expand All @@ -52,7 +51,6 @@ CURLX_HDRS = \
../../lib/curlx/timeval.h \
../../lib/curlx/dynbuf.h \
../../lib/strcase.h \
../../lib/strdup.h \
../../lib/curlx/multibyte.h \
../../lib/curlx/version_win32.h

Expand Down
4 changes: 1 addition & 3 deletions tests/server/getpart.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@

#if defined(UNDER_CE)
#define system_strdup _strdup
#elif !defined(HAVE_STRDUP)
#define system_strdup Curl_strdup
#else
#define system_strdup strdup
#endif
Expand All @@ -68,7 +66,7 @@ curl_realloc_callback Curl_crealloc = (curl_realloc_callback)realloc;
curl_strdup_callback Curl_cstrdup = (curl_strdup_callback)system_strdup;
curl_calloc_callback Curl_ccalloc = (curl_calloc_callback)calloc;
#if defined(_WIN32) && defined(UNICODE)
curl_wcsdup_callback Curl_cwcsdup = Curl_wcsdup;
curl_wcsdup_callback Curl_cwcsdup = NULL; /* not use in test code */
#endif

#if defined(_MSC_VER) && defined(_DLL)
Expand Down
Loading
0