summaryrefslogtreecommitdiff
path: root/lib/strdup.h
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.h
parent203c5d5b3c4a174e5a8441590fc6fdf071951347 (diff)
downloadcurl-8fd2a754f0de4537286816ea8f52b7184e7b2d3d.tar.gz
memdup: use 'void *' as return and source type
Diffstat (limited to 'lib/strdup.h')
-rw-r--r--lib/strdup.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/strdup.h b/lib/strdup.h
index 4c48ca412..c74a3b730 100644
--- a/lib/strdup.h
+++ b/lib/strdup.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2016, 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
@@ -26,6 +26,6 @@
#ifndef HAVE_STRDUP
extern char *curlx_strdup(const char *str);
#endif
-char *Curl_memdup(const char *src, size_t buffer_length);
+void *Curl_memdup(const void *src, size_t buffer_length);
#endif /* HEADER_CURL_STRDUP_H */