diff --git a/src/apps/httpd/httpd.c b/src/apps/httpd/httpd.c index c2825145..5d2a97b7 100644 --- a/src/apps/httpd/httpd.c +++ b/src/apps/httpd/httpd.c @@ -2037,7 +2037,7 @@ http_parse_request(struct pbuf *inp, struct http_state *hs, struct tcp_pcb *pcb) return http_find_error_file(hs, 501); } /* if we come here, method is OK, parse URI */ - left_len = data_len - ((sp1 +1) - data); + left_len = (u16_t)(data_len - ((sp1 +1) - data)); sp2 = strnstr(sp1 + 1, " ", left_len); #if LWIP_HTTPD_SUPPORT_V09 if (sp2 == NULL) { @@ -2052,7 +2052,7 @@ http_parse_request(struct pbuf *inp, struct http_state *hs, struct tcp_pcb *pcb) #endif /* LWIP_HTTPD_SUPPORT_POST */ } #endif /* LWIP_HTTPD_SUPPORT_V09 */ - uri_len = sp2 - (sp1 + 1); + uri_len = (u16_t)(sp2 - (sp1 + 1)); if ((sp2 != 0) && (sp2 > sp1)) { /* wait for CRLFCRLF (indicating end of HTTP headers) before parsing anything */ if (strnstr(data, CRLF CRLF, data_len) != NULL) { diff --git a/src/apps/httpd/makefsdata/makefsdata.c b/src/apps/httpd/makefsdata/makefsdata.c index d29a0475..1c4ba524 100644 --- a/src/apps/httpd/makefsdata/makefsdata.c +++ b/src/apps/httpd/makefsdata/makefsdata.c @@ -563,7 +563,7 @@ u8_t* get_file_data(const char* filename, int* file_size, int can_be_compressed, } } #else - LWIP_UNUSED_ARG(compress); + LWIP_UNUSED_ARG(can_be_compressed); #endif fclose(inFile); return buf;