diff options
Diffstat (limited to 'src/peerinfo/gnunet-service-peerinfo.c')
-rw-r--r-- | src/peerinfo/gnunet-service-peerinfo.c | 16 |
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 | */ |
656 | static void | 655 | static void |
657 | cron_scan_directory_data_hosts (void *cls, | 656 | cron_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 | */ |
1046 | static void | 1045 | static void |
1047 | cron_clean_data_hosts (void *cls, | 1046 | cron_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 | */ |
1282 | static void | 1281 | static void |
1283 | shutdown_task (void *cls, | 1282 | shutdown_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; |