diff options
Diffstat (limited to 'src/exchange/taler-exchange-httpd_wire.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_wire.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/exchange/taler-exchange-httpd_wire.c b/src/exchange/taler-exchange-httpd_wire.c index 2617b574f..7246939d5 100644 --- a/src/exchange/taler-exchange-httpd_wire.c +++ b/src/exchange/taler-exchange-httpd_wire.c | |||
@@ -95,7 +95,7 @@ destroy_wire_state_cb (void *cls) | |||
95 | } | 95 | } |
96 | 96 | ||
97 | 97 | ||
98 | int | 98 | enum GNUNET_GenericReturnValue |
99 | TEH_WIRE_init () | 99 | TEH_WIRE_init () |
100 | { | 100 | { |
101 | if (0 != | 101 | if (0 != |
@@ -369,21 +369,19 @@ get_wire_state (void) | |||
369 | 369 | ||
370 | 370 | ||
371 | MHD_RESULT | 371 | MHD_RESULT |
372 | TEH_handler_wire (const struct TEH_RequestHandler *rh, | 372 | TEH_handler_wire (struct TEH_RequestContext *rc, |
373 | struct MHD_Connection *connection, | ||
374 | const char *const args[]) | 373 | const char *const args[]) |
375 | { | 374 | { |
376 | struct WireStateHandle *wsh; | 375 | struct WireStateHandle *wsh; |
377 | 376 | ||
378 | (void) rh; | ||
379 | (void) args; | 377 | (void) args; |
380 | wsh = get_wire_state (); | 378 | wsh = get_wire_state (); |
381 | if (NULL == wsh) | 379 | if (NULL == wsh) |
382 | return TALER_MHD_reply_with_error (connection, | 380 | return TALER_MHD_reply_with_error (rc->connection, |
383 | MHD_HTTP_INTERNAL_SERVER_ERROR, | 381 | MHD_HTTP_INTERNAL_SERVER_ERROR, |
384 | TALER_EC_EXCHANGE_GENERIC_BAD_CONFIGURATION, | 382 | TALER_EC_EXCHANGE_GENERIC_BAD_CONFIGURATION, |
385 | NULL); | 383 | NULL); |
386 | return TALER_MHD_reply_json (connection, | 384 | return TALER_MHD_reply_json (rc->connection, |
387 | wsh->wire_reply, | 385 | wsh->wire_reply, |
388 | wsh->http_status); | 386 | wsh->http_status); |
389 | } | 387 | } |