[go: nahoru, domu]

Skip to content

Commit

Permalink
remove compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
i110 committed Sep 11, 2018
1 parent ba6e30c commit 1d602e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/libh2o/http1client.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ static int cur_body_size;

static h2o_httpclient_head_cb on_connect(h2o_httpclient_t *client, const char *errstr, h2o_iovec_t *method, h2o_url_t *url,
const h2o_header_t **headers, size_t *num_headers, h2o_iovec_t *body,
h2o_httpclient_proceed_req_cb *proceed_req_cb, h2o_httpclient_properties_t props,
h2o_httpclient_proceed_req_cb *proceed_req_cb, h2o_httpclient_properties_t *props,
h2o_url_t *origin);
static h2o_httpclient_body_cb on_head(h2o_httpclient_t *client, const char *errstr, int minor_version, int status, h2o_iovec_t msg,
h2o_header_t *headers, size_t num_headers, int rlen);
h2o_header_t *headers, size_t num_headers, int rlen, int header_requires_dup);

static void start_request(h2o_httpclient_ctx_t *ctx)
{
Expand Down Expand Up @@ -104,7 +104,7 @@ static int on_body(h2o_httpclient_t *client, const char *errstr)
}

h2o_httpclient_body_cb on_head(h2o_httpclient_t *client, const char *errstr, int minor_version, int status, h2o_iovec_t msg,
h2o_header_t *headers, size_t num_headers, int rlen)
h2o_header_t *headers, size_t num_headers, int rlen, int header_requires_dup)
{
size_t i;

Expand Down Expand Up @@ -172,7 +172,7 @@ static void proceed_request(h2o_httpclient_t *client, size_t written, int is_end

h2o_httpclient_head_cb on_connect(h2o_httpclient_t *client, const char *errstr, h2o_iovec_t *_method, h2o_url_t *url,
const h2o_header_t **headers, size_t *num_headers, h2o_iovec_t *body,
h2o_httpclient_proceed_req_cb *proceed_req_cb, h2o_httpclient_properties_t props,
h2o_httpclient_proceed_req_cb *proceed_req_cb, h2o_httpclient_properties_t *props,
h2o_url_t *origin)
{
if (errstr != NULL) {
Expand Down

0 comments on commit 1d602e5

Please sign in to comment.