gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-exchange] branch master updated: Refactor plugin_exc


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] branch master updated: Refactor plugin_exchangedb_postgres for GNUNET_memcmp
Date: Mon, 08 Apr 2019 20:43:42 +0200

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

ng0 pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new b669f0df Refactor plugin_exchangedb_postgres for GNUNET_memcmp
b669f0df is described below

commit b669f0dfaed4fd517f5f89f9c32e95641b37e407
Author: ng0 <address@hidden>
AuthorDate: Mon Apr 8 18:43:23 2019 +0000

    Refactor plugin_exchangedb_postgres for GNUNET_memcmp
---
 src/exchangedb/plugin_exchangedb_postgres.c | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/src/exchangedb/plugin_exchangedb_postgres.c 
b/src/exchangedb/plugin_exchangedb_postgres.c
index 6aec3711..aabdfbbb 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -2924,9 +2924,8 @@ postgres_have_deposit (void *cls,
             deposit2.timestamp.abs_value_us) ) ) ||
        (deposit->refund_deadline.abs_value_us !=
         deposit2.refund_deadline.abs_value_us) ||
-       (0 != memcmp (&deposit->h_wire,
-                     &deposit2.h_wire,
-                     sizeof (struct GNUNET_HashCode)) ) )
+       (0 != GNUNET_memcmp (&deposit->h_wire,
+                            &deposit2.h_wire) ) )
   {
     /* Inconsistencies detected! Does not match!  (We might want to
        expand the API with a 'get_deposit' function to return the
@@ -4114,9 +4113,8 @@ add_ldl (void *cls,
       }
     }
     if ( (NULL != ldctx->last) &&
-         (0 == memcmp (&transfer_pub,
-                       &ldctx->transfer_pub,
-                       sizeof (struct TALER_TransferPublicKeyP))) )
+         (0 == GNUNET_memcmp (&transfer_pub,
+                              &ldctx->transfer_pub)) )
     {
       pos->next = ldctx->last;
     }
@@ -4964,9 +4962,8 @@ postgres_insert_wire_fee (void *cls,
     return qs;
   if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT == qs)
   {
-    if (0 != memcmp (&sig,
-                     master_sig,
-                     sizeof (sig)))
+    if (0 != GNUNET_memcmp (&sig,
+                            master_sig))
     {
       GNUNET_break (0);
       return GNUNET_DB_STATUS_HARD_ERROR;

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



reply via email to

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