projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0244c0d
)
strcmp instead of memcmp
author
Christian Grothoff
<christian@grothoff.org>
Wed, 22 Feb 2017 13:53:46 +0000
(14:53 +0100)
committer
Christian Grothoff
<christian@grothoff.org>
Wed, 22 Feb 2017 13:53:46 +0000
(14:53 +0100)
src/gns/plugin_block_gns.c
patch
|
blob
|
history
diff --git
a/src/gns/plugin_block_gns.c
b/src/gns/plugin_block_gns.c
index 300dbc0202a4083574a5de53ce02d05e1724316b..8ce2d85dabcdf5019b75e82b7518a365e4ce415b 100644
(file)
--- 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
{