diff options
Diffstat (limited to 'src/hostlist/gnunet-daemon-hostlist_server.c')
-rw-r--r-- | src/hostlist/gnunet-daemon-hostlist_server.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/hostlist/gnunet-daemon-hostlist_server.c b/src/hostlist/gnunet-daemon-hostlist_server.c index 7c5b18605..6e2cb7ee4 100644 --- a/src/hostlist/gnunet-daemon-hostlist_server.c +++ b/src/hostlist/gnunet-daemon-hostlist_server.c | |||
@@ -627,19 +627,18 @@ prepare_daemon (struct MHD_Daemon *daemon_handle); | |||
627 | * and schedule the next run. | 627 | * and schedule the next run. |
628 | * | 628 | * |
629 | * @param cls the `struct MHD_Daemon` of the HTTP server to run | 629 | * @param cls the `struct MHD_Daemon` of the HTTP server to run |
630 | * @param tc scheduler context | ||
631 | */ | 630 | */ |
632 | static void | 631 | static void |
633 | run_daemon (void *cls, | 632 | run_daemon (void *cls) |
634 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
635 | { | 633 | { |
636 | struct MHD_Daemon *daemon_handle = cls; | 634 | struct MHD_Daemon *daemon_handle = cls; |
635 | const struct GNUNET_SCHEDULER_TaskContext *tc; | ||
637 | 636 | ||
638 | if (daemon_handle == daemon_handle_v4) | 637 | if (daemon_handle == daemon_handle_v4) |
639 | hostlist_task_v4 = NULL; | 638 | hostlist_task_v4 = NULL; |
640 | else | 639 | else |
641 | hostlist_task_v6 = NULL; | 640 | hostlist_task_v6 = NULL; |
642 | 641 | tc = GNUNET_SCHEDULER_get_task_context (); | |
643 | if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) | 642 | if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) |
644 | return; | 643 | return; |
645 | GNUNET_assert (MHD_YES == MHD_run (daemon_handle)); | 644 | GNUNET_assert (MHD_YES == MHD_run (daemon_handle)); |