You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
718 B

  1. --- a/src/webserver.c
  2. +++ b/src/webserver.c
  3. @@ -129,7 +129,7 @@ const char *get_mimetype(const char str[
  4. return "application/octet-stream";
  5. }
  6. -static int send_response(void *cls, struct MHD_Connection *connection,
  7. +static enum MHD_Result send_response(void *cls, struct MHD_Connection *connection,
  8. const char *url, const char *method, const char *version,
  9. const char *upload_data, size_t *upload_data_size, void **con_cls)
  10. {
  11. @@ -142,7 +142,7 @@ static int send_response(void *cls, stru
  12. struct device *device;
  13. int is_localhost;
  14. FILE *fp;
  15. - int ret;
  16. + enum MHD_Result ret;
  17. connection_info = MHD_get_connection_info(connection, MHD_CONNECTION_INFO_CLIENT_ADDRESS);
  18. if (!connection_info) {