diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-03-15 22:24:15 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-03-15 22:24:15 +0100 |
commit | efdc91ead4a74afb9b858ea3377bbf5581aabb0d (patch) | |
tree | 30be70823b36f128565f28b1f676bc4d88dc3f02 /src/exchange/taler-exchange-httpd_mhd.c | |
parent | f29a7e31558e28a6612a4cc73f0b25309135046f (diff) | |
download | exchange-efdc91ead4a74afb9b858ea3377bbf5581aabb0d.tar.gz exchange-efdc91ead4a74afb9b858ea3377bbf5581aabb0d.tar.bz2 exchange-efdc91ead4a74afb9b858ea3377bbf5581aabb0d.zip |
clean up link logic
Diffstat (limited to 'src/exchange/taler-exchange-httpd_mhd.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_mhd.c | 16 |
1 files changed, 10 insertions, 6 deletions
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; + } } |