X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Fhttp_chunks.c;h=61a6098a7f1985035bfa56c21d4762f053e8233b;hb=7a9f915fa6be8c8955ff2c59169538a4d0349080;hp=7e91b37dcfe5d006f78896d8c21900426ed6ada3;hpb=2bc9d6bb53df44a0c5174767de734620c2cdfd9e;p=platform%2Fupstream%2Fcurl.git diff --git a/lib/http_chunks.c b/lib/http_chunks.c index 7e91b37..61a6098 100644 --- a/lib/http_chunks.c +++ b/lib/http_chunks.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2015, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2014, 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 @@ -29,12 +29,15 @@ #include "content_encoding.h" #include "http.h" +#include "curl_memory.h" #include "non-ascii.h" /* for Curl_convert_to_network prototype */ #include "strtoofft.h" #include "warnless.h" -/* The last #include files should be: */ -#include "curl_memory.h" +#define _MPRINTF_REPLACE /* use our functions only */ +#include + +/* The last #include file should be: */ #include "memdebug.h" /* @@ -155,7 +158,7 @@ CHUNKcode Curl_httpchunk_read(struct connectdata *conn, if(result) { /* Curl_convert_from_network calls failf if unsuccessful */ /* Treat it as a bad hex character */ - return CHUNKE_ILLEGAL_HEX; + return CHUNKE_ILLEGAL_HEX ; } ch->datasize=curlx_strtoofft(ch->hexbuffer, &endptr, 16); @@ -218,6 +221,7 @@ CHUNKcode Curl_httpchunk_read(struct connectdata *conn, (ssize_t)piece); break; + case COMPRESS: default: failf (conn->data, "Unrecognized content encoding type. "