aboutsummaryrefslogtreecommitdiff
path: root/src/peerstore/peerstore_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/peerstore/peerstore_api.c')
-rw-r--r--src/peerstore/peerstore_api.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/peerstore/peerstore_api.c b/src/peerstore/peerstore_api.c
index df1971c4e..e2ed06d28 100644
--- a/src/peerstore/peerstore_api.c
+++ b/src/peerstore/peerstore_api.c
@@ -1139,7 +1139,7 @@ hello_updated (void *cls,
1139 hello = record->value; 1139 hello = record->value;
1140 builder = GNUNET_HELLO_builder_from_msg (hello); 1140 builder = GNUNET_HELLO_builder_from_msg (hello);
1141 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1141 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1142 "hello_updated with expired %s and size %lu for peer %s\n", 1142 "hello_updated with expired %s and size %u for peer %s\n",
1143 GNUNET_STRINGS_absolute_time_to_string (GNUNET_HELLO_builder_get_expiration_time (hello)), 1143 GNUNET_STRINGS_absolute_time_to_string (GNUNET_HELLO_builder_get_expiration_time (hello)),
1144 ntohs (hello->size), 1144 ntohs (hello->size),
1145 GNUNET_i2s (&record->peer)); 1145 GNUNET_i2s (&record->peer));
@@ -1355,7 +1355,7 @@ GNUNET_PEERSTORE_hello_add (struct GNUNET_PEERSTORE_Handle *h,
1355 huc->pid = GNUNET_malloc (pid_size); 1355 huc->pid = GNUNET_malloc (pid_size);
1356 GNUNET_memcpy (huc->pid, pid, pid_size); 1356 GNUNET_memcpy (huc->pid, pid, pid_size);
1357 LOG (GNUNET_ERROR_TYPE_DEBUG, 1357 LOG (GNUNET_ERROR_TYPE_DEBUG,
1358 "Adding hello for peer %s with expiration %s msg size %lu\n", 1358 "Adding hello for peer %s with expiration %s msg size %u\n",
1359 GNUNET_i2s (huc->pid), 1359 GNUNET_i2s (huc->pid),
1360 GNUNET_STRINGS_absolute_time_to_string (huc_exp), 1360 GNUNET_STRINGS_absolute_time_to_string (huc_exp),
1361 size_msg); 1361 size_msg);
@@ -1376,9 +1376,10 @@ free_store_context(void *cls,
1376 const struct GNUNET_PeerIdentity *key, 1376 const struct GNUNET_PeerIdentity *key,
1377 void *value) 1377 void *value)
1378{ 1378{
1379 (void *) cls; 1379 (void) cls;
1380 1380
1381 GNUNET_PEERSTORE_store_cancel ((struct GNUNET_PEERSTORE_StoreContext *) value); 1381 GNUNET_PEERSTORE_store_cancel ((struct GNUNET_PEERSTORE_StoreContext *) value);
1382 return GNUNET_YES; // FIXME why is this a map anyway
1382} 1383}
1383 1384
1384 1385
@@ -1386,8 +1387,6 @@ void
1386GNUNET_PEERSTORE_hello_add_cancel (struct 1387GNUNET_PEERSTORE_hello_add_cancel (struct
1387 GNUNET_PEERSTORE_StoreHelloContext *huc) 1388 GNUNET_PEERSTORE_StoreHelloContext *huc)
1388{ 1389{
1389 struct GNUNET_PEERSTORE_StoreContext *sc;
1390
1391 GNUNET_PEERSTORE_watch_cancel (huc->wc); 1390 GNUNET_PEERSTORE_watch_cancel (huc->wc);
1392 GNUNET_CONTAINER_multipeermap_iterate (huc->store_context_map, 1391 GNUNET_CONTAINER_multipeermap_iterate (huc->store_context_map,
1393 free_store_context, 1392 free_store_context,