From: Christian Grothoff Date: Wed, 22 Feb 2017 13:53:46 +0000 (+0100) Subject: strcmp instead of memcmp X-Git-Tag: taler-0.2.1~84 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=797aeba80acd8a09fe4e2da16ad5eaec4c8bde2c;p=oweals%2Fgnunet.git strcmp instead of memcmp --- 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 {