aboutsummaryrefslogtreecommitdiff
path: root/src/dns/plugin_block_dns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dns/plugin_block_dns.c')
-rw-r--r--src/dns/plugin_block_dns.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dns/plugin_block_dns.c b/src/dns/plugin_block_dns.c
index da8add50c..8ac1ef2b5 100644
--- a/src/dns/plugin_block_dns.c
+++ b/src/dns/plugin_block_dns.c
@@ -48,7 +48,7 @@
48 */ 48 */
49static enum GNUNET_BLOCK_EvaluationResult 49static enum GNUNET_BLOCK_EvaluationResult
50block_plugin_dns_evaluate (void *cls, enum GNUNET_BLOCK_Type type, 50block_plugin_dns_evaluate (void *cls, enum GNUNET_BLOCK_Type type,
51 const GNUNET_HashCode * query, 51 const struct GNUNET_HashCode * query,
52 struct GNUNET_CONTAINER_BloomFilter **bf, 52 struct GNUNET_CONTAINER_BloomFilter **bf,
53 int32_t bf_mutator, const void *xquery, 53 int32_t bf_mutator, const void *xquery,
54 size_t xquery_size, const void *reply_block, 54 size_t xquery_size, const void *reply_block,
@@ -124,13 +124,13 @@ block_plugin_dns_evaluate (void *cls, enum GNUNET_BLOCK_Type type,
124static int 124static int
125block_plugin_dns_get_key (void *cls, enum GNUNET_BLOCK_Type type, 125block_plugin_dns_get_key (void *cls, enum GNUNET_BLOCK_Type type,
126 const void *block, size_t block_size, 126 const void *block, size_t block_size,
127 GNUNET_HashCode * key) 127 struct GNUNET_HashCode * key)
128{ 128{
129 if (type != GNUNET_BLOCK_TYPE_DNS) 129 if (type != GNUNET_BLOCK_TYPE_DNS)
130 return GNUNET_SYSERR; 130 return GNUNET_SYSERR;
131 const struct GNUNET_DNS_Record *rec = block; 131 const struct GNUNET_DNS_Record *rec = block;
132 132
133 memcpy (key, &rec->service_descriptor, sizeof (GNUNET_HashCode)); 133 memcpy (key, &rec->service_descriptor, sizeof (struct GNUNET_HashCode));
134 return GNUNET_OK; 134 return GNUNET_OK;
135} 135}
136 136