diff options
Diffstat (limited to 'src/block/plugin_block_dns.c')
-rw-r--r-- | src/block/plugin_block_dns.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/block/plugin_block_dns.c b/src/block/plugin_block_dns.c index 0cf8c50e9..e20370685 100644 --- a/src/block/plugin_block_dns.c +++ b/src/block/plugin_block_dns.c | |||
@@ -47,14 +47,12 @@ | |||
47 | * @return characterization of result | 47 | * @return characterization of result |
48 | */ | 48 | */ |
49 | static enum GNUNET_BLOCK_EvaluationResult | 49 | static enum GNUNET_BLOCK_EvaluationResult |
50 | block_plugin_dns_evaluate (void *cls, | 50 | block_plugin_dns_evaluate (void *cls, enum GNUNET_BLOCK_Type type, |
51 | enum GNUNET_BLOCK_Type type, | ||
52 | const GNUNET_HashCode * query, | 51 | const GNUNET_HashCode * query, |
53 | struct GNUNET_CONTAINER_BloomFilter **bf, | 52 | struct GNUNET_CONTAINER_BloomFilter **bf, |
54 | int32_t bf_mutator, | 53 | int32_t bf_mutator, const void *xquery, |
55 | const void *xquery, | 54 | size_t xquery_size, const void *reply_block, |
56 | size_t xquery_size, | 55 | size_t reply_block_size) |
57 | const void *reply_block, size_t reply_block_size) | ||
58 | { | 56 | { |
59 | switch (type) | 57 | switch (type) |
60 | { | 58 | { |
@@ -123,10 +121,9 @@ block_plugin_dns_evaluate (void *cls, | |||
123 | * (or if extracting a key from a block of this type does not work) | 121 | * (or if extracting a key from a block of this type does not work) |
124 | */ | 122 | */ |
125 | static int | 123 | static int |
126 | block_plugin_dns_get_key (void *cls, | 124 | block_plugin_dns_get_key (void *cls, enum GNUNET_BLOCK_Type type, |
127 | enum GNUNET_BLOCK_Type type, | 125 | const void *block, size_t block_size, |
128 | const void *block, | 126 | GNUNET_HashCode * key) |
129 | size_t block_size, GNUNET_HashCode * key) | ||
130 | { | 127 | { |
131 | if (type != GNUNET_BLOCK_TYPE_DNS) | 128 | if (type != GNUNET_BLOCK_TYPE_DNS) |
132 | return GNUNET_SYSERR; | 129 | return GNUNET_SYSERR; |