aboutsummaryrefslogtreecommitdiff
path: root/src/block/block.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/block/block.c')
-rw-r--r--src/block/block.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/block/block.c b/src/block/block.c
index 98095b51c..4b2d8a960 100644
--- a/src/block/block.c
+++ b/src/block/block.c
@@ -91,6 +91,7 @@ struct MinglePacker
91 91
92GNUNET_NETWORK_STRUCT_END 92GNUNET_NETWORK_STRUCT_END
93 93
94
94void 95void
95GNUNET_BLOCK_mingle_hash (const struct GNUNET_HashCode *in, 96GNUNET_BLOCK_mingle_hash (const struct GNUNET_HashCode *in,
96 uint32_t mingle_number, 97 uint32_t mingle_number,
@@ -172,11 +173,9 @@ GNUNET_BLOCK_context_destroy (struct GNUNET_BLOCK_Context *ctx)
172 173
173enum GNUNET_GenericReturnValue 174enum GNUNET_GenericReturnValue
174GNUNET_BLOCK_group_serialize (struct GNUNET_BLOCK_Group *bg, 175GNUNET_BLOCK_group_serialize (struct GNUNET_BLOCK_Group *bg,
175 uint32_t *nonce,
176 void **raw_data, 176 void **raw_data,
177 size_t *raw_data_size) 177 size_t *raw_data_size)
178{ 178{
179 *nonce = 0;
180 *raw_data = NULL; 179 *raw_data = NULL;
181 *raw_data_size = 0; 180 *raw_data_size = 0;
182 if (NULL == bg) 181 if (NULL == bg)
@@ -184,7 +183,6 @@ GNUNET_BLOCK_group_serialize (struct GNUNET_BLOCK_Group *bg,
184 if (NULL == bg->serialize_cb) 183 if (NULL == bg->serialize_cb)
185 return GNUNET_NO; 184 return GNUNET_NO;
186 return bg->serialize_cb (bg, 185 return bg->serialize_cb (bg,
187 nonce,
188 raw_data, 186 raw_data,
189 raw_data_size); 187 raw_data_size);
190} 188}
@@ -248,7 +246,6 @@ find_plugin (struct GNUNET_BLOCK_Context *ctx,
248struct GNUNET_BLOCK_Group * 246struct GNUNET_BLOCK_Group *
249GNUNET_BLOCK_group_create (struct GNUNET_BLOCK_Context *ctx, 247GNUNET_BLOCK_group_create (struct GNUNET_BLOCK_Context *ctx,
250 enum GNUNET_BLOCK_Type type, 248 enum GNUNET_BLOCK_Type type,
251 uint32_t nonce,
252 const void *raw_data, 249 const void *raw_data,
253 size_t raw_data_size, 250 size_t raw_data_size,
254 ...) 251 ...)
@@ -267,7 +264,6 @@ GNUNET_BLOCK_group_create (struct GNUNET_BLOCK_Context *ctx,
267 raw_data_size); 264 raw_data_size);
268 bg = plugin->create_group (plugin->cls, 265 bg = plugin->create_group (plugin->cls,
269 type, 266 type,
270 nonce,
271 raw_data, 267 raw_data,
272 raw_data_size, 268 raw_data_size,
273 ap); 269 ap);