projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
support BF size adjustments in other plugins
[oweals/gnunet.git]
/
src
/
dht
/
plugin_block_dht.c
diff --git
a/src/dht/plugin_block_dht.c
b/src/dht/plugin_block_dht.c
index 869ec155440ff2dd8adbc456c6327a43b4c5365c..72480536cef73a826d8f3d1c3d696f33583a0da0 100644
(file)
--- a/
src/dht/plugin_block_dht.c
+++ b/
src/dht/plugin_block_dht.c
@@
-95,11
+95,11
@@
block_plugin_dht_create_group (void *cls,
const char *guard;
guard = va_arg (va, const char *);
const char *guard;
guard = va_arg (va, const char *);
- if (0
!
= memcmp (guard,
+ if (0
=
= memcmp (guard,
"seen-set-size",
strlen ("seen-set-size")))
bf_size = compute_bloomfilter_size (va_arg (va, unsigned int));
"seen-set-size",
strlen ("seen-set-size")))
bf_size = compute_bloomfilter_size (va_arg (va, unsigned int));
- else if (0 == memcmp (
va_arg (va, const char *)
,
+ else if (0 == memcmp (
guard
,
"filter-size",
strlen ("filter-size")))
bf_size = va_arg (va, unsigned int);
"filter-size",
strlen ("filter-size")))
bf_size = va_arg (va, unsigned int);
@@
-108,6
+108,7
@@
block_plugin_dht_create_group (void *cls,
GNUNET_break (0);
bf_size = 8;
}
GNUNET_break (0);
bf_size = 8;
}
+ GNUNET_break (NULL == va_arg (va, const char *));
return GNUNET_BLOCK_GROUP_bf_create (cls,
bf_size,
BLOOMFILTER_K,
return GNUNET_BLOCK_GROUP_bf_create (cls,
bf_size,
BLOOMFILTER_K,