aboutsummaryrefslogtreecommitdiff
path: root/src/dht/test_dht_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dht/test_dht_api.c')
-rw-r--r--src/dht/test_dht_api.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dht/test_dht_api.c b/src/dht/test_dht_api.c
index 000ad3344..40d7f5b77 100644
--- a/src/dht/test_dht_api.c
+++ b/src/dht/test_dht_api.c
@@ -177,7 +177,7 @@ test_get_stop (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
177 177
178static void 178static void
179test_get_iterator (void *cls, struct GNUNET_TIME_Absolute exp, 179test_get_iterator (void *cls, struct GNUNET_TIME_Absolute exp,
180 const GNUNET_HashCode * key, 180 const struct GNUNET_HashCode * key,
181 const struct GNUNET_PeerIdentity *get_path, 181 const struct GNUNET_PeerIdentity *get_path,
182 unsigned int get_path_length, 182 unsigned int get_path_length,
183 const struct GNUNET_PeerIdentity *put_path, 183 const struct GNUNET_PeerIdentity *put_path,
@@ -201,9 +201,9 @@ static void
201test_get (void *cls, int success) 201test_get (void *cls, int success)
202{ 202{
203 struct PeerContext *peer = cls; 203 struct PeerContext *peer = cls;
204 GNUNET_HashCode hash; 204 struct GNUNET_HashCode hash;
205 205
206 memset (&hash, 42, sizeof (GNUNET_HashCode)); 206 memset (&hash, 42, sizeof (struct GNUNET_HashCode));
207 207
208 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Called test_get!\n"); 208 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Called test_get!\n");
209 209
@@ -238,11 +238,11 @@ static void
238test_put (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 238test_put (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
239{ 239{
240 struct PeerContext *peer = cls; 240 struct PeerContext *peer = cls;
241 GNUNET_HashCode hash; 241 struct GNUNET_HashCode hash;
242 char *data; 242 char *data;
243 size_t data_size = 42; 243 size_t data_size = 42;
244 244
245 memset (&hash, 42, sizeof (GNUNET_HashCode)); 245 memset (&hash, 42, sizeof (struct GNUNET_HashCode));
246 data = GNUNET_malloc (data_size); 246 data = GNUNET_malloc (data_size);
247 memset (data, 43, data_size); 247 memset (data, 43, data_size);
248 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Called test_put!\n"); 248 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Called test_put!\n");