diff options
author | Bertrand Marc <beberking@gmail.com> | 2013-08-03 13:07:32 +0200 |
---|---|---|
committer | Bertrand Marc <beberking@gmail.com> | 2013-08-03 13:07:32 +0200 |
commit | 1ae32bc989973c2e8909c3b085d34b2454f92d1e (patch) | |
tree | dfde89b41437def7ce23af24db53a11a9b5f1075 /src/block/plugin_block_test.c | |
parent | 740b30688bd745a527f96f9116c19acb3480971a (diff) |
Imported Upstream version 0.9.5a
Diffstat (limited to 'src/block/plugin_block_test.c')
-rw-r--r-- | src/block/plugin_block_test.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/block/plugin_block_test.c b/src/block/plugin_block_test.c index 81e80e3..dacf045 100644 --- a/src/block/plugin_block_test.c +++ b/src/block/plugin_block_test.c @@ -28,8 +28,6 @@ #include "platform.h" #include "gnunet_block_plugin.h" -#define DEBUG_TEST GNUNET_EXTRA_LOGGING - /** * Number of bits we set per entry in the bloomfilter. @@ -54,18 +52,18 @@ */ static enum GNUNET_BLOCK_EvaluationResult block_plugin_test_evaluate (void *cls, enum GNUNET_BLOCK_Type type, - const GNUNET_HashCode * query, + const struct GNUNET_HashCode * query, struct GNUNET_CONTAINER_BloomFilter **bf, int32_t bf_mutator, const void *xquery, size_t xquery_size, const void *reply_block, size_t reply_block_size) { - GNUNET_HashCode chash; - GNUNET_HashCode mhash; + struct GNUNET_HashCode chash; + struct GNUNET_HashCode mhash; - if (type != GNUNET_BLOCK_TYPE_TEST) + if ( GNUNET_BLOCK_TYPE_TEST != type) return GNUNET_BLOCK_EVALUATION_TYPE_NOT_SUPPORTED; - if (xquery_size != 0) + if (0 != xquery_size) { GNUNET_break_op (0); return GNUNET_BLOCK_EVALUATION_REQUEST_INVALID; @@ -106,7 +104,7 @@ block_plugin_test_evaluate (void *cls, enum GNUNET_BLOCK_Type type, static int block_plugin_test_get_key (void *cls, enum GNUNET_BLOCK_Type type, const void *block, size_t block_size, - GNUNET_HashCode * key) + struct GNUNET_HashCode * key) { /* always fails since there is no fixed relationship between * keys and values for test values */ |