diff options
Diffstat (limited to 'src/util/service.c')
-rw-r--r-- | src/util/service.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/util/service.c b/src/util/service.c index be3b4442a..76e540302 100644 --- a/src/util/service.c +++ b/src/util/service.c | |||
@@ -1126,11 +1126,9 @@ write_pid_file (struct GNUNET_SERVICE_Context *sctx, pid_t pid) | |||
1126 | * Task run during shutdown. Stops the server/service. | 1126 | * Task run during shutdown. Stops the server/service. |
1127 | * | 1127 | * |
1128 | * @param cls the `struct GNUNET_SERVICE_Context` | 1128 | * @param cls the `struct GNUNET_SERVICE_Context` |
1129 | * @param tc unused | ||
1130 | */ | 1129 | */ |
1131 | static void | 1130 | static void |
1132 | shutdown_task (void *cls, | 1131 | shutdown_task (void *cls) |
1133 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
1134 | { | 1132 | { |
1135 | struct GNUNET_SERVICE_Context *service = cls; | 1133 | struct GNUNET_SERVICE_Context *service = cls; |
1136 | struct GNUNET_SERVER_Handle *server = service->server; | 1134 | struct GNUNET_SERVER_Handle *server = service->server; |
@@ -1147,14 +1145,15 @@ shutdown_task (void *cls, | |||
1147 | * Initial task for the service. | 1145 | * Initial task for the service. |
1148 | * | 1146 | * |
1149 | * @param cls service context | 1147 | * @param cls service context |
1150 | * @param tc unused | ||
1151 | */ | 1148 | */ |
1152 | static void | 1149 | static void |
1153 | service_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 1150 | service_task (void *cls) |
1154 | { | 1151 | { |
1155 | struct GNUNET_SERVICE_Context *sctx = cls; | 1152 | struct GNUNET_SERVICE_Context *sctx = cls; |
1156 | unsigned int i; | 1153 | unsigned int i; |
1154 | const struct GNUNET_SCHEDULER_TaskContext *tc; | ||
1157 | 1155 | ||
1156 | tc = GNUNET_SCHEDULER_get_task_context (); | ||
1158 | if (0 != (GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason)) | 1157 | if (0 != (GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason)) |
1159 | return; | 1158 | return; |
1160 | (void) GNUNET_SPEEDUP_start_ (sctx->cfg); | 1159 | (void) GNUNET_SPEEDUP_start_ (sctx->cfg); |