diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2017-05-01 14:10:43 -0400 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2017-05-01 14:48:45 -0400 |
commit | 5b13619da4d12f262a289a8b93eedec00e977a60 (patch) | |
tree | 1c99784164359792504692c59a8a54674fd094da /src/tool_cb_dbg.c | |
parent | 499a7288fe831ef51a9b0930fc67bcd97aa6c675 (diff) | |
download | curl-5b13619da4d12f262a289a8b93eedec00e977a60.tar.gz |
tool: Fix missing prototype warnings for CURL_DOES_CONVERSIONS
- Include tool_convert.h where needed.
Bug: https://github.com/curl/curl/issues/1460
Reported-by: Gisle Vanem
Diffstat (limited to 'src/tool_cb_dbg.c')
-rw-r--r-- | src/tool_cb_dbg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tool_cb_dbg.c b/src/tool_cb_dbg.c index 4eeb7b210..b4fbe0bb9 100644 --- a/src/tool_cb_dbg.c +++ b/src/tool_cb_dbg.c @@ -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; |