be more backwards-compatible

This commit is contained in:
Christian Grothoff 2021-12-08 21:14:36 +01:00
parent 7fdcec4c3c
commit 5433c2a475
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -79,7 +79,7 @@ append (char **target,
} }
static enum MHD_Result static MHD_RESULT
handle_post (void *cls, handle_post (void *cls,
enum MHD_ValueKind kind, enum MHD_ValueKind kind,
const char *key, const char *key,
@ -160,7 +160,7 @@ handle_post (void *cls,
* #MHD_NO if the socket must be closed due to a serious * #MHD_NO if the socket must be closed due to a serious
* error while handling the request * error while handling the request
*/ */
static enum MHD_Result static MHD_RESULT
handler_cb (void *cls, handler_cb (void *cls,
struct MHD_Connection *connection, struct MHD_Connection *connection,
const char *url, const char *url,
@ -210,7 +210,7 @@ handler_cb (void *cls,
} }
if (0 != *upload_data_size) if (0 != *upload_data_size)
{ {
enum MHD_Result ret; MHD_RESULT ret;
ret = MHD_post_process (rc->pp, ret = MHD_post_process (rc->pp,
upload_data, upload_data,