From: Junio C Hamano Date: Tue, 13 Oct 2009 08:38:42 GMT Subject: Re: [RFC PATCH v2 16/16] Smart HTTP fetch: gzip requests Message-ID: <7vocobzo19.fsf@alter.siamese.dyndns.org> In-Reply-To: <1255400715-10508-17-git-send-email-spearce@spearce.org> "Shawn O. Pearce" writes: > diff --git a/remote-curl.c b/remote-curl.c > index 31d1d34..d53215d 100644 > --- a/remote-curl.c > +++ b/remote-curl.c > @@ -261,11 +261,12 @@ static size_t rpc_in(const void *ptr, size_t eltsize, > return size; > } > > -static int post_rpc(struct rpc_state *state) > +static int post_rpc(struct rpc_state *state, int use_gzip) > { > struct active_request_slot *slot; > struct slot_results results; > struct curl_slist *headers = NULL; > + unsigned char *gzip_body = NULL; > int err = 0, large_request = 0; > > /* Try to load the entire request, if we can fit it into the > @@ -311,6 +313,48 @@ static int post_rpc(struct rpc_state *state) > ... > + curl_easy_setopt(slot->curl, CURLOPT_POSTFIELDS, gzip_body); cc1: warnings being treated as errors In function 'post_rpc', inlined from 'one_shot_rpc_service' at remote-curl.c:433: remote-curl.c:350: error: call to '_curl_easy_setopt_err_postfields' declared with attribute warning: curl_easy_setopt expects a void* or char* argument for this option make: *** [remote-curl.o] Error 1