aboutsummaryrefslogtreecommitdiff
path: root/src/fs/plugin_block_fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/plugin_block_fs.c')
-rw-r--r--src/fs/plugin_block_fs.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/fs/plugin_block_fs.c b/src/fs/plugin_block_fs.c
index 9b73f2497..c43a5de5e 100644
--- a/src/fs/plugin_block_fs.c
+++ b/src/fs/plugin_block_fs.c
@@ -57,17 +57,17 @@
57 */ 57 */
58static enum GNUNET_BLOCK_EvaluationResult 58static enum GNUNET_BLOCK_EvaluationResult
59block_plugin_fs_evaluate (void *cls, enum GNUNET_BLOCK_Type type, 59block_plugin_fs_evaluate (void *cls, enum GNUNET_BLOCK_Type type,
60 const GNUNET_HashCode * query, 60 const struct GNUNET_HashCode * query,
61 struct GNUNET_CONTAINER_BloomFilter **bf, 61 struct GNUNET_CONTAINER_BloomFilter **bf,
62 int32_t bf_mutator, const void *xquery, 62 int32_t bf_mutator, const void *xquery,
63 size_t xquery_size, const void *reply_block, 63 size_t xquery_size, const void *reply_block,
64 size_t reply_block_size) 64 size_t reply_block_size)
65{ 65{
66 const struct SBlock *sb; 66 const struct SBlock *sb;
67 GNUNET_HashCode chash; 67 struct GNUNET_HashCode chash;
68 GNUNET_HashCode mhash; 68 struct GNUNET_HashCode mhash;
69 const GNUNET_HashCode *nsid; 69 const struct GNUNET_HashCode *nsid;
70 GNUNET_HashCode sh; 70 struct GNUNET_HashCode sh;
71 71
72 switch (type) 72 switch (type)
73 { 73 {
@@ -107,7 +107,7 @@ block_plugin_fs_evaluate (void *cls, enum GNUNET_BLOCK_Type type,
107 } 107 }
108 return GNUNET_BLOCK_EVALUATION_OK_MORE; 108 return GNUNET_BLOCK_EVALUATION_OK_MORE;
109 case GNUNET_BLOCK_TYPE_FS_SBLOCK: 109 case GNUNET_BLOCK_TYPE_FS_SBLOCK:
110 if (xquery_size != sizeof (GNUNET_HashCode)) 110 if (xquery_size != sizeof (struct GNUNET_HashCode))
111 { 111 {
112 GNUNET_break_op (0); 112 GNUNET_break_op (0);
113 return GNUNET_BLOCK_EVALUATION_REQUEST_INVALID; 113 return GNUNET_BLOCK_EVALUATION_REQUEST_INVALID;
@@ -124,7 +124,7 @@ block_plugin_fs_evaluate (void *cls, enum GNUNET_BLOCK_Type type,
124 GNUNET_CRYPTO_hash (&sb->subspace, 124 GNUNET_CRYPTO_hash (&sb->subspace,
125 sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), 125 sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded),
126 &sh); 126 &sh);
127 if (0 != memcmp (nsid, &sh, sizeof (GNUNET_HashCode))) 127 if (0 != memcmp (nsid, &sh, sizeof (struct GNUNET_HashCode)))
128 { 128 {
129 GNUNET_log_from (GNUNET_ERROR_TYPE_WARNING, "block-fs", 129 GNUNET_log_from (GNUNET_ERROR_TYPE_WARNING, "block-fs",
130 _ 130 _
@@ -167,7 +167,7 @@ block_plugin_fs_evaluate (void *cls, enum GNUNET_BLOCK_Type type,
167static int 167static int
168block_plugin_fs_get_key (void *cls, enum GNUNET_BLOCK_Type type, 168block_plugin_fs_get_key (void *cls, enum GNUNET_BLOCK_Type type,
169 const void *block, size_t block_size, 169 const void *block, size_t block_size,
170 GNUNET_HashCode * key) 170 struct GNUNET_HashCode * key)
171{ 171{
172 const struct KBlock *kb; 172 const struct KBlock *kb;
173 const struct SBlock *sb; 173 const struct SBlock *sb;