X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Ftool_cb_hdr.c;h=ef340f7983ce7b3b227df5b48bae3c61fafd30a2;hb=f7bbc1c9b6a8e2c815d09612b53f453c90d962e0;hp=fd208e862ceab7a4c4b130d8b25d400448164165;hpb=31368b6eac8092a307849518e912b4c475c0238a;p=platform%2Fupstream%2Fcurl.git diff --git a/src/tool_cb_hdr.c b/src/tool_cb_hdr.c index fd208e8..ef340f7 100644 --- a/src/tool_cb_hdr.c +++ b/src/tool_cb_hdr.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2015, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2012, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -61,8 +61,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_HTTP_HEADER) { - warnf(heads->config->global, "Header data exceeds single call write " - "limit!\n"); + warnf(heads->config, "Header data exceeds single call write limit!\n"); return failure; } #endif @@ -75,8 +74,6 @@ size_t tool_header_cb(void *ptr, size_t size, size_t nmemb, void *userdata) size_t rc = fwrite(ptr, size, nmemb, heads->stream); if(rc != cb) return rc; - /* flush the stream to send off what we got earlier */ - (void)fflush(heads->stream); } /*