diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-22 14:53:46 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-22 14:53:46 +0100 |
commit | 797aeba80acd8a09fe4e2da16ad5eaec4c8bde2c (patch) | |
tree | 64c6607b567db53ba9b397e3d42ac562b6694022 /src/gns/plugin_block_gns.c | |
parent | 0244c0d86cd86e4cc90e0c112c6edeafdfb558c2 (diff) |
strcmp instead of memcmp
Diffstat (limited to 'src/gns/plugin_block_gns.c')
-rw-r--r-- | src/gns/plugin_block_gns.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gns/plugin_block_gns.c b/src/gns/plugin_block_gns.c index 300dbc0202..8ce2d85dab 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 { |