aboutsummaryrefslogtreecommitdiff
path: root/src/block/plugin_block_template.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-02-22 14:53:11 +0100
committerChristian Grothoff <christian@grothoff.org>2017-02-22 14:53:11 +0100
commit0244c0d86cd86e4cc90e0c112c6edeafdfb558c2 (patch)
treeb534b32562883064a09d856f700995a2f1b5cc42 /src/block/plugin_block_template.c
parent7184623654f81c1ba557f8fa95a3086342b4af6b (diff)
downloadgnunet-0244c0d86cd86e4cc90e0c112c6edeafdfb558c2.tar.gz
gnunet-0244c0d86cd86e4cc90e0c112c6edeafdfb558c2.zip
strcmp instead of memcmp
Diffstat (limited to 'src/block/plugin_block_template.c')
-rw-r--r--src/block/plugin_block_template.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/block/plugin_block_template.c b/src/block/plugin_block_template.c
index f11d5ee76..0825bd095 100644
--- a/src/block/plugin_block_template.c
+++ b/src/block/plugin_block_template.c
@@ -98,13 +98,11 @@ block_plugin_template_create_group (void *cls,
98 const char *guard; 98 const char *guard;
99 99
100 guard = va_arg (va, const char *); 100 guard = va_arg (va, const char *);
101 if (0 == memcmp (guard, 101 if (0 == strcmp (guard,
102 "seen-set-size", 102 "seen-set-size"))
103 strlen ("seen-set-size")))
104 bf_size = compute_bloomfilter_size (va_arg (va, unsigned int)); 103 bf_size = compute_bloomfilter_size (va_arg (va, unsigned int));
105 else if (0 == memcmp (guard, 104 else if (0 == strcmp (guard,
106 "filter-size", 105 "filter-size"))
107 strlen ("filter-size")))
108 bf_size = va_arg (va, unsigned int); 106 bf_size = va_arg (va, unsigned int);
109 else 107 else
110 { 108 {