summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'http.c')
-rw-r--r--http.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/http.c b/http.c
index df6b1036..d23776eb 100644
--- a/http.c
+++ b/http.c
@@ -844,7 +844,7 @@ evhttp_read_body(struct evhttp_connection *evcon, struct evhttp_request *req)
evbuffer_add_buffer(req->input_buffer, buf);
req->body_size += evbuffer_get_length(buf);
} else if (req->chunk_cb != NULL ||
- evbuffer_get_length(buf) >= req->ntoread) {
+ evbuffer_get_length(buf) >= (size_t)req->ntoread) {
/* We've postponed moving the data until now, but we're
* about to use it. */
req->ntoread -= evbuffer_get_length(buf);
@@ -2251,11 +2251,11 @@ evhttp_response_phrase_internal(int code)
int subcode = code % 100;
/* Unknown class - can't do any better here */
- if (klass < 0 || klass >= MEMBERSOF(response_classes))
+ if (klass < 0 || klass >= (int) MEMBERSOF(response_classes))
return "Unknown Status Class";
/* Unknown sub-code, return class name at least */
- if (subcode >= response_classes[klass].num_responses)
+ if (subcode >= (int) response_classes[klass].num_responses)
return response_classes[klass].name;
return response_classes[klass].responses[subcode];