X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Ffs%2Fplugin_block_fs.c;h=c762835ce12de34398164e41b8c3ea6af7437e2e;hb=0d8487a744066dce7d097fb91ae0f965033c79ea;hp=c5e63c9e2f79c40cc9809ef576bda6375960048f;hpb=82242cae3bb6313ee10df20570e4c14627828033;p=oweals%2Fgnunet.git diff --git a/src/fs/plugin_block_fs.c b/src/fs/plugin_block_fs.c index c5e63c9e2..c762835ce 100644 --- a/src/fs/plugin_block_fs.c +++ b/src/fs/plugin_block_fs.c @@ -71,17 +71,22 @@ block_plugin_fs_create_group (void *cls, return NULL; case GNUNET_BLOCK_TYPE_FS_UBLOCK: guard = va_arg (va, const char *); - if (0 != strcmp (guard, + if (0 == strcmp (guard, "seen-set-size")) { - /* va-args invalid! bad bug, complain! */ - GNUNET_break (0); - size = 8; + size = GNUNET_BLOCK_GROUP_compute_bloomfilter_size (va_arg (va, unsigned int), + BLOOMFILTER_K); + } + else if (0 == strcmp (guard, + "filter-size")) + { + size = va_arg (va, unsigned int); } else { - size = GNUNET_BLOCK_GROUP_compute_bloomfilter_size (va_arg (va, unsigned int), - BLOOMFILTER_K); + /* va-args invalid! bad bug, complain! */ + GNUNET_break (0); + size = 8; } if (0 == size) size = raw_data_size; /* not for us to determine, use what we got! */ @@ -276,7 +281,7 @@ libgnunet_plugin_block_fs_init (void *cls) void * libgnunet_plugin_block_fs_done (void *cls) { - struct GNUNET_TRANSPORT_PluginFunctions *api = cls; + struct GNUNET_BLOCK_PluginFunctions *api = cls; GNUNET_free (api); return NULL;