summaryrefslogtreecommitdiff
path: root/src/tool_cb_hdr.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-09-26 21:19:41 +0200
committerYang Tse <yangsita@gmail.com>2011-09-26 21:19:41 +0200
commite2be8ceed9bda26ebf8dcaaa7caf9df4d32d598a (patch)
treef770bbd3fc95db07a3e7c96660993dc894fd0ee8 /src/tool_cb_hdr.c
parentd43983062111ebcd5d69d8347d64458463e9fa23 (diff)
downloadcurl-e2be8ceed9bda26ebf8dcaaa7caf9df4d32d598a.tar.gz
curl tool: fix a compiler warning
Diffstat (limited to 'src/tool_cb_hdr.c')
-rw-r--r--src/tool_cb_hdr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tool_cb_hdr.c b/src/tool_cb_hdr.c
index bea407a1c..ac3d6d216 100644
--- a/src/tool_cb_hdr.c
+++ b/src/tool_cb_hdr.c
@@ -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