mirror of
https://github.com/curl/curl.git
synced 2026-08-25 10:33:31 +03:00
curl tool: fix a compiler warning
This commit is contained in:
parent
d439830621
commit
e2be8ceed9
1 changed files with 1 additions and 2 deletions
|
|
@ -47,7 +47,6 @@ size_t tool_header_cb(void *ptr, size_t size, size_t nmemb, void *userdata)
|
||||||
const char *str = ptr;
|
const char *str = ptr;
|
||||||
const size_t cb = size * nmemb;
|
const size_t cb = size * nmemb;
|
||||||
const char *end = (char*)ptr + cb;
|
const char *end = (char*)ptr + cb;
|
||||||
struct Configurable *config = outs->config;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Once that libcurl has called back tool_header_cb() the returned value
|
* 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
|
#ifdef DEBUGBUILD
|
||||||
if(size * nmemb > (size_t)CURL_MAX_WRITE_SIZE) {
|
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;
|
return failure;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue