gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-merchant] branch master updated: work around build e


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant] branch master updated: work around build error for incomplete /tip implementation
Date: Tue, 24 Oct 2017 00:34:45 +0200

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 c94688c  work around build error for incomplete /tip implementation
c94688c is described below

commit c94688c3e908b551b5b3f0763c4d6d64ba69caef
Author: Christian Grothoff <address@hidden>
AuthorDate: Tue Oct 24 00:34:43 2017 +0200

    work around build error for incomplete /tip implementation
---
 src/backend/taler-merchant-httpd_tip-authorize.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_tip-authorize.c 
b/src/backend/taler-merchant-httpd_tip-authorize.c
index 415352a..ad33b37 100644
--- a/src/backend/taler-merchant-httpd_tip-authorize.c
+++ b/src/backend/taler-merchant-httpd_tip-authorize.c
@@ -81,7 +81,6 @@ MH_handler_tip_authorize (struct TMH_RequestHandler *rh,
                           const char *upload_data,
                           size_t *upload_data_size)
 {
-  enum GNUNET_DB_QueryStatus qs;
   struct MerchantInstance *mi;
   int res;
   struct TALER_Amount amount;
@@ -97,6 +96,7 @@ MH_handler_tip_authorize (struct TMH_RequestHandler *rh,
   struct GNUNET_TIME_Absolute expiration;
   struct GNUNET_HashCode tip_id;
   struct TMH_JsonParseContext *ctx;
+  enum TALER_ErrorCode ec;
 
   if (NULL == *connection_cls)
   {
@@ -144,20 +144,20 @@ MH_handler_tip_authorize (struct TMH_RequestHandler *rh,
                                         
TALER_EC_TIP_AUTHORIZE_INSTANCE_DOES_NOT_TIP,
                                         "exchange for tipping not configured 
for the instance");
   }
-  qs = db->authorize_tip (db->cls,
+  ec = db->authorize_tip (db->cls,
                           justification,
                           &amount,
                           &mi->tip_reserve,
                           &expiration,
                           &tip_id);
-  if (0 > qs)
+  if (TALER_EC_NONE != ec)
   {
-    GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR != qs);
+    /* FIXME: differenciate better between ec's */
     return TMH_RESPONSE_reply_internal_error (connection,
-                                             
TALER_EC_TIP_AUTHORIZE_DB_TRANSACTION_ERROR,
+                                             ec,
                                               "Database error approving tip");
   }
-  if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == qs)
+  if (0)
   {
     GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
                 "Insufficient funds to authorize tip over `%s' at instance 
`%s'\n",

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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