gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] branch master updated: strcmp instead of memcmp


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: strcmp instead of memcmp
Date: Wed, 22 Feb 2017 14:52:36 +0100

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

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 797aeba80 strcmp instead of memcmp
797aeba80 is described below

commit 797aeba80acd8a09fe4e2da16ad5eaec4c8bde2c
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Feb 22 14:53:46 2017 +0100

    strcmp instead of memcmp
---
 src/gns/plugin_block_gns.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/gns/plugin_block_gns.c b/src/gns/plugin_block_gns.c
index 300dbc020..8ce2d85da 100644
--- a/src/gns/plugin_block_gns.c
+++ b/src/gns/plugin_block_gns.c
@@ -98,13 +98,11 @@ block_plugin_gns_create_group (void *cls,
   const char *guard;
 
   guard = va_arg (va, const char *);
-  if (0 == memcmp (guard,
-                   "seen-set-size",
-                   strlen ("seen-set-size")))
+  if (0 == strcmp (guard,
+                   "seen-set-size"))
     bf_size = compute_bloomfilter_size (va_arg (va, unsigned int));
-  else if (0 == memcmp (guard,
-                        "filter-size",
-                        strlen ("filter-size")))
+  else if (0 == strcmp (guard,
+                        "filter-size"))
     bf_size = va_arg (va, unsigned int);
   else
   {

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



reply via email to

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