gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant] branch master updated: fix compiler warning


From: gnunet
Subject: [taler-merchant] branch master updated: fix compiler warning
Date: Sun, 25 Oct 2020 20:17:21 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 4144e23  fix compiler warning
4144e23 is described below

commit 4144e2306662a6e197bb5db4738244da0d30064f
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Oct 25 20:17:19 2020 +0100

    fix compiler warning
---
 src/lib/merchant_api_post_orders.c | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)

diff --git a/src/lib/merchant_api_post_orders.c 
b/src/lib/merchant_api_post_orders.c
index aa29bea..a6f1ec7 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;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]