Skip to content
Snippets Groups Projects
Commit e2be8cee authored by Yang Tse's avatar Yang Tse
Browse files

curl tool: fix a compiler warning

parent d4398306
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,6 @@ size_t tool_header_cb(void *ptr, size_t size, size_t nmemb, void *userdata)
const char *str = ptr;
const size_t cb = size * nmemb;
const char *end = (char*)ptr + cb;
struct Configurable *config = outs->config;
/*
* Once that libcurl has called back tool_header_cb() the returned value
......@@ -59,7 +58,7 @@ size_t tool_header_cb(void *ptr, size_t size, size_t nmemb, void *userdata)
#ifdef DEBUGBUILD
if(size * nmemb > (size_t)CURL_MAX_WRITE_SIZE) {
warnf(config, "Header data exceeds single call write limit!\n");
warnf(outs->config, "Header data exceeds single call write limit!\n");
return failure;
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment