From 4144e2306662a6e197bb5db4738244da0d30064f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 25 Oct 2020 20:17:19 +0100 Subject: fix compiler warning --- src/lib/merchant_api_post_orders.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'src/lib') diff --git a/src/lib/merchant_api_post_orders.c b/src/lib/merchant_api_post_orders.c index aa29bea3..a6f1ec71 100644 --- a/src/lib/merchant_api_post_orders.c +++ b/src/lib/merchant_api_post_orders.c @@ -131,10 +131,6 @@ handle_post_order_finished (void *cls, the merchant is buggy (or API version conflict); just pass JSON reply to the application */ break; - case MHD_HTTP_CONFLICT: - hr.ec = TALER_JSON_get_error_code (json); - hr.hint = TALER_JSON_get_error_hint (json); - break; case MHD_HTTP_FORBIDDEN: /* Nothing really to verify, merchant says one of the signatures is invalid; as we checked them, @@ -150,20 +146,19 @@ handle_post_order_finished (void *cls, hr.hint = TALER_JSON_get_error_hint (json); break; case MHD_HTTP_CONFLICT: - /* Nothing really to verify */ hr.ec = TALER_JSON_get_error_code (json); hr.hint = TALER_JSON_get_error_hint (json); break; + case MHD_HTTP_GONE: + /* The quantity of some product requested was not available. */ + // FIXME: parse the OutOfStockResponse. + break; case MHD_HTTP_INTERNAL_SERVER_ERROR: /* Server had an internal issue; we should retry, but this API leaves this to the application */ hr.ec = TALER_JSON_get_error_code (json); hr.hint = TALER_JSON_get_error_hint (json); break; - case MHD_HTTP_GONE: - /* The quantity of some product requested was not available. */ - // FIXME: parse the OutOfStockResponse. - break; default: /* unexpected response code */ hr.ec = TALER_JSON_get_error_code (json); @@ -226,10 +221,7 @@ TALER_MERCHANT_orders_post2 ( struct TALER_MERCHANT_PostOrdersOperation *po; json_t *req; CURL *eh; - const char *delay_s; - delay_s = GNUNET_STRINGS_relative_time_to_string (refund_delay, - GNUNET_NO); po = GNUNET_new (struct TALER_MERCHANT_PostOrdersOperation); po->ctx = ctx; po->cb = cb; -- cgit v1.2.3