aboutsummaryrefslogtreecommitdiff
path: root/src/dht/plugin_block_dht.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-01-09 17:48:27 +0100
committerChristian Grothoff <christian@grothoff.org>2017-01-09 21:18:47 +0100
commitd829597ee90dccffffd46a082372af6b35042130 (patch)
tree3287e54a2401ccf7050f6588afb01043e7ea8be9 /src/dht/plugin_block_dht.c
parent4bf29b6e9f9b0223f9497f7664e96e3f333df861 (diff)
downloadgnunet-d829597ee90dccffffd46a082372af6b35042130.tar.gz
gnunet-d829597ee90dccffffd46a082372af6b35042130.zip
cosmetics
Diffstat (limited to 'src/dht/plugin_block_dht.c')
-rw-r--r--src/dht/plugin_block_dht.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/dht/plugin_block_dht.c b/src/dht/plugin_block_dht.c
index 17594efcb..4256a0fe6 100644
--- a/src/dht/plugin_block_dht.c
+++ b/src/dht/plugin_block_dht.c
@@ -70,7 +70,7 @@ block_plugin_dht_evaluate (void *cls,
70 70
71 if (type != GNUNET_BLOCK_TYPE_DHT_HELLO) 71 if (type != GNUNET_BLOCK_TYPE_DHT_HELLO)
72 return GNUNET_BLOCK_EVALUATION_TYPE_NOT_SUPPORTED; 72 return GNUNET_BLOCK_EVALUATION_TYPE_NOT_SUPPORTED;
73 if (xquery_size != 0) 73 if (0 != xquery_size)
74 { 74 {
75 GNUNET_break_op (0); 75 GNUNET_break_op (0);
76 return GNUNET_BLOCK_EVALUATION_REQUEST_INVALID; 76 return GNUNET_BLOCK_EVALUATION_REQUEST_INVALID;
@@ -121,14 +121,16 @@ block_plugin_dht_evaluate (void *cls,
121 * @param type block type 121 * @param type block type
122 * @param block block to get the key for 122 * @param block block to get the key for
123 * @param block_size number of bytes @a block 123 * @param block_size number of bytes @a block
124 * @param key set to the key (query) for the given block 124 * @param[out] key set to the key (query) for the given block
125 * @return #GNUNET_OK on success, #GNUNET_SYSERR if type not supported 125 * @return #GNUNET_OK on success, #GNUNET_SYSERR if type not supported
126 * (or if extracting a key from a block of this type does not work) 126 * (or if extracting a key from a block of this type does not work)
127 */ 127 */
128static int 128static int
129block_plugin_dht_get_key (void *cls, enum GNUNET_BLOCK_Type type, 129block_plugin_dht_get_key (void *cls,
130 const void *block, size_t block_size, 130 enum GNUNET_BLOCK_Type type,
131 struct GNUNET_HashCode * key) 131 const void *block,
132 size_t block_size,
133 struct GNUNET_HashCode *key)
132{ 134{
133 const struct GNUNET_MessageHeader *msg; 135 const struct GNUNET_MessageHeader *msg;
134 const struct GNUNET_HELLO_Message *hello; 136 const struct GNUNET_HELLO_Message *hello;