]> granicus.if.org Git - curl/commitdiff
tool: Fix missing prototype warnings for CURL_DOES_CONVERSIONS
authorJay Satiro <raysatiro@yahoo.com>
Mon, 1 May 2017 18:10:43 +0000 (14:10 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Mon, 1 May 2017 18:48:45 +0000 (14:48 -0400)
- Include tool_convert.h where needed.

Bug: https://github.com/curl/curl/issues/1460
Reported-by: Gisle Vanem
src/tool_cb_dbg.c
src/tool_formparse.c
src/tool_getparam.c

index 4eeb7b21018ea3f0750504bcf3ba62a5eb94ed60..b4fbe0bb9d490bf1852b597569ce3b7cda2555f2 100644 (file)
@@ -26,6 +26,7 @@
 #include "curlx.h"
 
 #include "tool_cfgable.h"
+#include "tool_convert.h"
 #include "tool_msgs.h"
 #include "tool_cb_dbg.h"
 #include "tool_util.h"
@@ -171,7 +172,8 @@ int tool_debug_cb(CURL *handle, curl_infotype type,
       if(memcmp(&data[i], "\r\n\r\n", 4) == 0) {
         /* dump everything through the CRLFCRLF as a sent header */
         text = "=> Send header";
-        dump(timebuf, text, output, data, i + 4, config->tracetype, type);
+        dump(timebuf, text, output, (unsigned char *)data, i + 4,
+             config->tracetype, type);
         data += i + 3;
         size -= i + 4;
         type = CURLINFO_DATA_OUT;
index 88352fb11d8ac33bca4c3f1aee886e55b4680484..1bcd4c56361c87a6b591d1ff059415c586dc09d0 100644 (file)
@@ -28,6 +28,7 @@
 #include "curlx.h"
 
 #include "tool_cfgable.h"
+#include "tool_convert.h"
 #include "tool_mfiles.h"
 #include "tool_msgs.h"
 #include "tool_formparse.h"
index c8c53fad1c751a41252a4d74756a9e39033e8186..d47f16c5c46016d78b0c0aa750894dc1848343c5 100644 (file)
@@ -30,6 +30,7 @@
 #include "tool_binmode.h"
 #include "tool_cfgable.h"
 #include "tool_cb_prg.h"
+#include "tool_convert.h"
 #include "tool_formparse.h"
 #include "tool_getparam.h"
 #include "tool_helpers.h"