diff options
Diffstat (limited to 'src/dht/test_dht_twopeer_path_tracking.c')
-rw-r--r-- | src/dht/test_dht_twopeer_path_tracking.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/dht/test_dht_twopeer_path_tracking.c b/src/dht/test_dht_twopeer_path_tracking.c index f45d3b6b7..86086b806 100644 --- a/src/dht/test_dht_twopeer_path_tracking.c +++ b/src/dht/test_dht_twopeer_path_tracking.c | |||
@@ -193,23 +193,23 @@ end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
193 | */ | 193 | */ |
194 | static void | 194 | static void |
195 | get_result_iterator (void *cls, struct GNUNET_TIME_Absolute exp, | 195 | get_result_iterator (void *cls, struct GNUNET_TIME_Absolute exp, |
196 | const GNUNET_HashCode * key, | 196 | const struct GNUNET_HashCode * key, |
197 | const struct GNUNET_PeerIdentity *get_path, | 197 | const struct GNUNET_PeerIdentity *get_path, |
198 | unsigned int get_path_length, | 198 | unsigned int get_path_length, |
199 | const struct GNUNET_PeerIdentity *put_path, | 199 | const struct GNUNET_PeerIdentity *put_path, |
200 | unsigned int put_path_length, enum GNUNET_BLOCK_Type type, | 200 | unsigned int put_path_length, enum GNUNET_BLOCK_Type type, |
201 | size_t size, const void *data) | 201 | size_t size, const void *data) |
202 | { | 202 | { |
203 | GNUNET_HashCode original_key; /* Key data was stored data under */ | 203 | struct GNUNET_HashCode original_key; /* Key data was stored data under */ |
204 | char original_data[4]; /* Made up data that was stored */ | 204 | char original_data[4]; /* Made up data that was stored */ |
205 | 205 | ||
206 | memset (&original_key, 42, sizeof (GNUNET_HashCode)); /* Set the key to what it was set to previously */ | 206 | memset (&original_key, 42, sizeof (struct GNUNET_HashCode)); /* Set the key to what it was set to previously */ |
207 | memset (original_data, 43, sizeof (original_data)); | 207 | memset (original_data, 43, sizeof (original_data)); |
208 | #if VERBOSE | 208 | #if VERBOSE |
209 | unsigned int i; | 209 | unsigned int i; |
210 | #endif | 210 | #endif |
211 | 211 | ||
212 | if ((0 != memcmp (&original_key, key, sizeof (GNUNET_HashCode))) || | 212 | if ((0 != memcmp (&original_key, key, sizeof (struct GNUNET_HashCode))) || |
213 | (0 != memcmp (original_data, data, sizeof (original_data)))) | 213 | (0 != memcmp (original_data, data, sizeof (original_data)))) |
214 | { | 214 | { |
215 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 215 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
@@ -251,13 +251,13 @@ get_result_iterator (void *cls, struct GNUNET_TIME_Absolute exp, | |||
251 | static void | 251 | static void |
252 | put_finished (void *cls, int success) | 252 | put_finished (void *cls, int success) |
253 | { | 253 | { |
254 | GNUNET_HashCode key; /* Key for data lookup */ | 254 | struct GNUNET_HashCode key; /* Key for data lookup */ |
255 | 255 | ||
256 | GNUNET_SCHEDULER_cancel (die_task); | 256 | GNUNET_SCHEDULER_cancel (die_task); |
257 | die_task = | 257 | die_task = |
258 | GNUNET_SCHEDULER_add_delayed (GET_TIMEOUT, &end_badly, | 258 | GNUNET_SCHEDULER_add_delayed (GET_TIMEOUT, &end_badly, |
259 | "waiting for get response (data not found)"); | 259 | "waiting for get response (data not found)"); |
260 | memset (&key, 42, sizeof (GNUNET_HashCode)); /* Set the key to the same thing as when data was inserted */ | 260 | memset (&key, 42, sizeof (struct GNUNET_HashCode)); /* Set the key to the same thing as when data was inserted */ |
261 | global_get_handle = | 261 | global_get_handle = |
262 | GNUNET_DHT_get_start (peer2dht, | 262 | GNUNET_DHT_get_start (peer2dht, |
263 | GNUNET_BLOCK_TYPE_TEST, &key, 1, | 263 | GNUNET_BLOCK_TYPE_TEST, &key, 1, |
@@ -271,10 +271,10 @@ put_finished (void *cls, int success) | |||
271 | static void | 271 | static void |
272 | do_put (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 272 | do_put (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
273 | { | 273 | { |
274 | GNUNET_HashCode key; /* Made up key to store data under */ | 274 | struct GNUNET_HashCode key; /* Made up key to store data under */ |
275 | char data[4]; /* Made up data to store */ | 275 | char data[4]; /* Made up data to store */ |
276 | 276 | ||
277 | memset (&key, 42, sizeof (GNUNET_HashCode)); /* Set the key to something simple so we can issue GET request */ | 277 | memset (&key, 42, sizeof (struct GNUNET_HashCode)); /* Set the key to something simple so we can issue GET request */ |
278 | memset (data, 43, sizeof (data)); | 278 | memset (data, 43, sizeof (data)); |
279 | 279 | ||
280 | /* Insert the data at the first peer */ | 280 | /* Insert the data at the first peer */ |