diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-10-25 20:17:19 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-10-25 20:17:19 +0100 |
commit | 4144e2306662a6e197bb5db4738244da0d30064f (patch) | |
tree | 2270dd5d099e069439499dcd03909a0ff31c0205 | |
parent | 9628ac1ec778388e675727f889764c82c2711928 (diff) |
fix compiler warning
-rw-r--r-- | src/lib/merchant_api_post_orders.c | 16 |
1 files changed, 4 insertions, 12 deletions
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; |