aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo/gnunet-service-peerinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/peerinfo/gnunet-service-peerinfo.c')
-rw-r--r--src/peerinfo/gnunet-service-peerinfo.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/peerinfo/gnunet-service-peerinfo.c b/src/peerinfo/gnunet-service-peerinfo.c
index 456a3546b..a0defb8cc 100644
--- a/src/peerinfo/gnunet-service-peerinfo.c
+++ b/src/peerinfo/gnunet-service-peerinfo.c
@@ -651,15 +651,15 @@ hosts_directory_scan_callback (void *cls,
651 * Call this method periodically to scan data/hosts for new hosts. 651 * Call this method periodically to scan data/hosts for new hosts.
652 * 652 *
653 * @param cls unused 653 * @param cls unused
654 * @param tc scheduler context, aborted if reason is shutdown
655 */ 654 */
656static void 655static void
657cron_scan_directory_data_hosts (void *cls, 656cron_scan_directory_data_hosts (void *cls)
658 const struct GNUNET_SCHEDULER_TaskContext *tc)
659{ 657{
660 static unsigned int retries; 658 static unsigned int retries;
661 struct DirScanContext dsc; 659 struct DirScanContext dsc;
660 const struct GNUNET_SCHEDULER_TaskContext *tc;
662 661
662 tc = GNUNET_SCHEDULER_get_task_context ();
663 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) 663 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
664 return; 664 return;
665 if (GNUNET_SYSERR == GNUNET_DISK_directory_create (networkIdDirectory)) 665 if (GNUNET_SYSERR == GNUNET_DISK_directory_create (networkIdDirectory))
@@ -1041,14 +1041,14 @@ discard_hosts_helper (void *cls,
1041 * HELLOs to expire. 1041 * HELLOs to expire.
1042 * 1042 *
1043 * @param cls unused 1043 * @param cls unused
1044 * @param tc scheduler context, aborted if reason is shutdown
1045 */ 1044 */
1046static void 1045static void
1047cron_clean_data_hosts (void *cls, 1046cron_clean_data_hosts (void *cls)
1048 const struct GNUNET_SCHEDULER_TaskContext *tc)
1049{ 1047{
1050 struct GNUNET_TIME_Absolute now; 1048 struct GNUNET_TIME_Absolute now;
1049 const struct GNUNET_SCHEDULER_TaskContext *tc;
1051 1050
1051 tc = GNUNET_SCHEDULER_get_task_context ();
1052 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) 1052 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
1053 return; 1053 return;
1054 now = GNUNET_TIME_absolute_get (); 1054 now = GNUNET_TIME_absolute_get ();
@@ -1277,11 +1277,9 @@ free_host_entry (void *cls,
1277 * Clean up our state. Called during shutdown. 1277 * Clean up our state. Called during shutdown.
1278 * 1278 *
1279 * @param cls unused 1279 * @param cls unused
1280 * @param tc scheduler task context, unused
1281 */ 1280 */
1282static void 1281static void
1283shutdown_task (void *cls, 1282shutdown_task (void *cls)
1284 const struct GNUNET_SCHEDULER_TaskContext *tc)
1285{ 1283{
1286 struct NotificationContext *cur; 1284 struct NotificationContext *cur;
1287 struct NotificationContext *next; 1285 struct NotificationContext *next;