diff --git a/net_http.c b/net_http.c index 8e3de16543..5041520d3f 100644 --- a/net_http.c +++ b/net_http.c @@ -184,7 +184,7 @@ static ssize_t net_http_recv(int fd, bool *error, if (*error) return -1; - bytes = recv(fd, data, maxlen, 0); + bytes = recv(fd, (char*)data, maxlen, 0); if (bytes > 0) return bytes; diff --git a/net_http.h b/net_http.h index 7cba2c32db..94cebeff01 100644 --- a/net_http.h +++ b/net_http.h @@ -18,7 +18,7 @@ #define _NET_HTTP_H #include -#include +#include #include #ifdef __cplusplus