aboutsummaryrefslogtreecommitdiff
path: root/utils/device-observatory/patches/020-libmicrohttpd.patch
blob: 3d2844b60b71ae6359c0717c1bd5284d82c811b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- 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) {