From efdc91ead4a74afb9b858ea3377bbf5581aabb0d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 15 Mar 2020 22:24:15 +0100 Subject: clean up link logic --- src/exchange/taler-exchange-httpd_mhd.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src/exchange/taler-exchange-httpd_mhd.c') diff --git a/src/exchange/taler-exchange-httpd_mhd.c b/src/exchange/taler-exchange-httpd_mhd.c index 6d05aeb64..a0b0d2844 100644 --- a/src/exchange/taler-exchange-httpd_mhd.c +++ b/src/exchange/taler-exchange-httpd_mhd.c @@ -33,6 +33,7 @@ #include "taler-exchange-httpd.h" #include "taler-exchange-httpd_mhd.h" + /** * Function to call to handle the request by sending * back static data from the @a rh. @@ -48,7 +49,6 @@ TEH_handler_static_response (const struct TEH_RequestHandler *rh, const char *const args[]) { struct MHD_Response *response; - int ret; size_t dlen; (void) args; @@ -68,11 +68,15 @@ TEH_handler_static_response (const struct TEH_RequestHandler *rh, (void) MHD_add_response_header (response, MHD_HTTP_HEADER_CONTENT_TYPE, rh->mime_type); - ret = MHD_queue_response (connection, - rh->response_code, - response); - MHD_destroy_response (response); - return ret; + { + int ret; + + ret = MHD_queue_response (connection, + rh->response_code, + response); + MHD_destroy_response (response); + return ret; + } } -- cgit v1.2.3