Fix warnings highlighted by gcc

This commit is contained in:
Jeremy Lakeman 2017-05-22 16:57:57 +09:30
parent 77b603942f
commit c138c94ee5
2 changed files with 4 additions and 1 deletions

View File

@ -1257,6 +1257,7 @@ static int http_request_decode_chunks(struct http_request *r){
return 0; return 0;
} }
} }
return -1;
} }
/* If the client is trying to post data and has supplied an "Expect: 100..." header /* If the client is trying to post data and has supplied an "Expect: 100..." header

View File

@ -154,7 +154,7 @@ static int send_content_end(struct http_request *hr)
} }
if (session) if (session)
close_session(session); close_session(session);
return 201; return ret;
} }
static void send_finalise(httpd_request *r) static void send_finalise(httpd_request *r)
@ -614,6 +614,7 @@ static int restful_meshmb_feedlist_json_content_chunk(struct http_request *hr, s
case LIST_DONE: case LIST_DONE:
return 0; return 0;
} }
return -1;
} }
static int restful_meshmb_feedlist_json_content(struct http_request *hr, unsigned char *buf, size_t bufsz, struct http_content_generator_result *result) static int restful_meshmb_feedlist_json_content(struct http_request *hr, unsigned char *buf, size_t bufsz, struct http_content_generator_result *result)
@ -837,6 +838,7 @@ static int restful_meshmb_activity_json_content_chunk(struct http_request *hr, s
case LIST_DONE: case LIST_DONE:
return 0; return 0;
} }
return -1;
} }
static int restful_meshmb_activity_json_content(struct http_request *hr, unsigned char *buf, size_t bufsz, struct http_content_generator_result *result) static int restful_meshmb_activity_json_content(struct http_request *hr, unsigned char *buf, size_t bufsz, struct http_content_generator_result *result)