aboutsummaryrefslogtreecommitdiff
path: root/lib/strdup.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-10-04 23:18:52 +0200
committerDaniel Stenberg <daniel@haxx.se>2016-10-04 23:31:25 +0200
commit8fd2a754f0de4537286816ea8f52b7184e7b2d3d (patch)
treed01eacc2f121a529e12bf12d8e28ad24b801cfda /lib/strdup.c
parent203c5d5b3c4a174e5a8441590fc6fdf071951347 (diff)
memdup: use 'void *' as return and source type
Diffstat (limited to 'lib/strdup.c')
-rw-r--r--lib/strdup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/strdup.c b/lib/strdup.c
index 23f554e51..5a15c2b16 100644
--- a/lib/strdup.c
+++ b/lib/strdup.c
@@ -65,9 +65,9 @@ char *curlx_strdup(const char *str)
* Returns the new pointer or NULL on failure.
*
***************************************************************************/
-char *Curl_memdup(const char *src, size_t length)
+void *Curl_memdup(const void *src, size_t length)
{
- char *buffer = malloc(length);
+ void *buffer = malloc(length);
if(!buffer)
return NULL; /* fail */