aboutsummaryrefslogtreecommitdiff
path: root/src/social/gnunet-service-social.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/social/gnunet-service-social.c')
-rw-r--r--src/social/gnunet-service-social.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/social/gnunet-service-social.c b/src/social/gnunet-service-social.c
index 98b1d4b59..1746a82ca 100644
--- a/src/social/gnunet-service-social.c
+++ b/src/social/gnunet-service-social.c
@@ -421,8 +421,10 @@ psyc_transmit_queue_message (struct Place *plc,
421 struct MessageTransmitQueue *tmit_msg); 421 struct MessageTransmitQueue *tmit_msg);
422 422
423 423
424int 424static int
425place_entry_cleanup (void *cls, const struct GNUNET_HashCode *key, void *value) 425place_entry_cleanup (void *cls,
426 const struct GNUNET_HashCode *key,
427 void *value)
426{ 428{
427 cleanup_place (value); 429 cleanup_place (value);
428 return GNUNET_YES; 430 return GNUNET_YES;
@@ -433,10 +435,9 @@ place_entry_cleanup (void *cls, const struct GNUNET_HashCode *key, void *value)
433 * Task run during shutdown. 435 * Task run during shutdown.
434 * 436 *
435 * @param cls unused 437 * @param cls unused
436 * @param tc unused
437 */ 438 */
438static void 439static void
439shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 440shutdown_task (void *cls)
440{ 441{
441 GNUNET_CONTAINER_multihashmap_iterate (hosts, place_entry_cleanup, NULL); 442 GNUNET_CONTAINER_multihashmap_iterate (hosts, place_entry_cleanup, NULL);
442 GNUNET_CONTAINER_multihashmap_iterate (guests, place_entry_cleanup, NULL); 443 GNUNET_CONTAINER_multihashmap_iterate (guests, place_entry_cleanup, NULL);
@@ -541,7 +542,7 @@ cleanup_place (struct Place *plc)
541 542
542 543
543static void 544static void
544schedule_cleanup_place (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 545schedule_cleanup_place (void *cls)
545{ 546{
546 cleanup_place (cls); 547 cleanup_place (cls);
547} 548}