packages/utils/device-observatory/patches/020-libmicrohttpd.patch
Ilya Lipnitskiy 5d8d4fbbcb
treewide: Run refresh on all packages
The crude loop I wrote to come up with this changeset:

  find -L package/feeds/packages/ -name patches | \
  sed 's/patches$/refresh/' | sort | xargs make

Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
2021-02-20 16:02:15 -08:00

20 lines
718 B
Diff

--- a/src/webserver.c
+++ b/src/webserver.c
@@ -129,7 +129,7 @@ const char *get_mimetype(const char str[
return "application/octet-stream";
}
-static int send_response(void *cls, struct MHD_Connection *connection,
+static enum MHD_Result send_response(void *cls, struct MHD_Connection *connection,
const char *url, const char *method, const char *version,
const char *upload_data, size_t *upload_data_size, void **con_cls)
{
@@ -142,7 +142,7 @@ static int send_response(void *cls, stru
struct device *device;
int is_localhost;
FILE *fp;
- int ret;
+ enum MHD_Result ret;
connection_info = MHD_get_connection_info(connection, MHD_CONNECTION_INFO_CLIENT_ADDRESS);
if (!connection_info) {