From 543fe4ae36649cf64eabb1b1447539bfb0c3c7c2 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 9 Apr 2020 00:59:55 +0200 Subject: make code compiler without warnings with latest libmicrohttpd API --- src/exchange/taler-exchange-httpd.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/exchange/taler-exchange-httpd.h') diff --git a/src/exchange/taler-exchange-httpd.h b/src/exchange/taler-exchange-httpd.h index 512fae8f0..b1e8079fe 100644 --- a/src/exchange/taler-exchange-httpd.h +++ b/src/exchange/taler-exchange-httpd.h @@ -26,6 +26,7 @@ #include #include "taler_json_lib.h" #include "taler_crypto_lib.h" +#include /** @@ -100,9 +101,9 @@ struct TEH_RequestHandler * @param args array of arguments, needs to be of length @e args_expected * @return MHD result code */ - int (*get)(const struct TEH_RequestHandler *rh, - struct MHD_Connection *connection, - const char *const args[]); + MHD_RESULT (*get)(const struct TEH_RequestHandler *rh, + struct MHD_Connection *connection, + const char *const args[]); /** @@ -115,10 +116,10 @@ struct TEH_RequestHandler * @param args array of arguments, needs to be of length @e args_expected * @return MHD result code */ - int (*post)(const struct TEH_RequestHandler *rh, - struct MHD_Connection *connection, - const json_t *root, - const char *const args[]); + MHD_RESULT (*post)(const struct TEH_RequestHandler *rh, + struct MHD_Connection *connection, + const json_t *root, + const char *const args[]); } handler; -- cgit v1.2.3