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/mhd/mhd_legal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mhd/mhd_legal.c') diff --git a/src/mhd/mhd_legal.c b/src/mhd/mhd_legal.c index 7b1ba1c11..b7859da1c 100644 --- a/src/mhd/mhd_legal.c +++ b/src/mhd/mhd_legal.c @@ -155,7 +155,7 @@ language_matches (const char *language_pattern, * @param legal legal document to serve * @return MHD result code */ -int +MHD_RESULT TALER_MHD_reply_legal (struct MHD_Connection *conn, struct TALER_MHD_Legal *legal) { @@ -174,7 +174,7 @@ TALER_MHD_reply_legal (struct MHD_Connection *conn, (0 == strcasecmp (etag, legal->terms_etag)) ) { - int ret; + MHD_RESULT ret; resp = MHD_create_response_from_buffer (0, NULL, @@ -292,7 +292,7 @@ TALER_MHD_reply_legal (struct MHD_Connection *conn, MHD_HTTP_HEADER_CONTENT_TYPE, t->mime_type)); { - int ret; + MHD_RESULT ret; ret = MHD_queue_response (conn, MHD_HTTP_OK, -- cgit v1.2.3