diff options
Diffstat (limited to 'src/transport/plugin_transport_http_server.c')
-rw-r--r-- | src/transport/plugin_transport_http_server.c | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c index cc1548f20..dfd0294e5 100644 --- a/src/transport/plugin_transport_http_server.c +++ b/src/transport/plugin_transport_http_server.c | |||
@@ -491,14 +491,14 @@ notify_session_monitor (struct HTTP_Server_Plugin *plugin, | |||
491 | * Wake up an MHD connection which was suspended | 491 | * Wake up an MHD connection which was suspended |
492 | * | 492 | * |
493 | * @param cls the session | 493 | * @param cls the session |
494 | * @param tc task context | ||
495 | */ | 494 | */ |
496 | static void | 495 | static void |
497 | server_wake_up (void *cls, | 496 | server_wake_up (void *cls) |
498 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
499 | { | 497 | { |
500 | struct GNUNET_ATS_Session *s = cls; | 498 | struct GNUNET_ATS_Session *s = cls; |
499 | const struct GNUNET_SCHEDULER_TaskContext *tc; | ||
501 | 500 | ||
501 | tc = GNUNET_SCHEDULER_get_task_context (); | ||
502 | s->recv_wakeup_task = NULL; | 502 | s->recv_wakeup_task = NULL; |
503 | if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) | 503 | if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) |
504 | return; | 504 | return; |
@@ -641,11 +641,9 @@ http_server_plugin_disconnect_session (void *cls, | |||
641 | * Session was idle, so disconnect it | 641 | * Session was idle, so disconnect it |
642 | * | 642 | * |
643 | * @param cls the session | 643 | * @param cls the session |
644 | * @param tc task context | ||
645 | */ | 644 | */ |
646 | static void | 645 | static void |
647 | server_session_timeout (void *cls, | 646 | server_session_timeout (void *cls) |
648 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
649 | { | 647 | { |
650 | struct GNUNET_ATS_Session *s = cls; | 648 | struct GNUNET_ATS_Session *s = cls; |
651 | struct GNUNET_TIME_Relative left; | 649 | struct GNUNET_TIME_Relative left; |
@@ -910,15 +908,15 @@ http_server_plugin_get_session (void *cls, | |||
910 | * and schedule the next run. | 908 | * and schedule the next run. |
911 | * | 909 | * |
912 | * @param cls plugin as closure | 910 | * @param cls plugin as closure |
913 | * @param tc task context | ||
914 | */ | 911 | */ |
915 | static void | 912 | static void |
916 | server_v4_run (void *cls, | 913 | server_v4_run (void *cls) |
917 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
918 | { | 914 | { |
919 | struct HTTP_Server_Plugin *plugin = cls; | 915 | struct HTTP_Server_Plugin *plugin = cls; |
916 | const struct GNUNET_SCHEDULER_TaskContext *tc; | ||
920 | 917 | ||
921 | plugin->server_v4_task = NULL; | 918 | plugin->server_v4_task = NULL; |
919 | tc = GNUNET_SCHEDULER_get_task_context (); | ||
922 | if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) | 920 | if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) |
923 | return; | 921 | return; |
924 | plugin->server_v4_immediately = GNUNET_NO; | 922 | plugin->server_v4_immediately = GNUNET_NO; |
@@ -932,15 +930,15 @@ server_v4_run (void *cls, | |||
932 | * and schedule the next run. | 930 | * and schedule the next run. |
933 | * | 931 | * |
934 | * @param cls plugin as closure | 932 | * @param cls plugin as closure |
935 | * @param tc task context | ||
936 | */ | 933 | */ |
937 | static void | 934 | static void |
938 | server_v6_run (void *cls, | 935 | server_v6_run (void *cls) |
939 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
940 | { | 936 | { |
941 | struct HTTP_Server_Plugin *plugin = cls; | 937 | struct HTTP_Server_Plugin *plugin = cls; |
938 | const struct GNUNET_SCHEDULER_TaskContext *tc; | ||
942 | 939 | ||
943 | plugin->server_v6_task = NULL; | 940 | plugin->server_v6_task = NULL; |
941 | tc = GNUNET_SCHEDULER_get_task_context (); | ||
944 | if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) | 942 | if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) |
945 | return; | 943 | return; |
946 | plugin->server_v6_immediately = GNUNET_NO; | 944 | plugin->server_v6_immediately = GNUNET_NO; |
@@ -2844,19 +2842,19 @@ server_check_ipv6_support (struct HTTP_Server_Plugin *plugin) | |||
2844 | * Notify server about our external hostname | 2842 | * Notify server about our external hostname |
2845 | * | 2843 | * |
2846 | * @param cls plugin | 2844 | * @param cls plugin |
2847 | * @param tc task context (unused) | ||
2848 | */ | 2845 | */ |
2849 | static void | 2846 | static void |
2850 | server_notify_external_hostname (void *cls, | 2847 | server_notify_external_hostname (void *cls) |
2851 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
2852 | { | 2848 | { |
2853 | struct HTTP_Server_Plugin *plugin = cls; | 2849 | struct HTTP_Server_Plugin *plugin = cls; |
2854 | struct HttpAddress *ext_addr; | 2850 | struct HttpAddress *ext_addr; |
2855 | size_t ext_addr_len; | 2851 | size_t ext_addr_len; |
2856 | unsigned int urlen; | 2852 | unsigned int urlen; |
2857 | char *url; | 2853 | char *url; |
2854 | const struct GNUNET_SCHEDULER_TaskContext *tc; | ||
2858 | 2855 | ||
2859 | plugin->notify_ext_task = NULL; | 2856 | plugin->notify_ext_task = NULL; |
2857 | tc = GNUNET_SCHEDULER_get_task_context (); | ||
2860 | if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) | 2858 | if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) |
2861 | return; | 2859 | return; |
2862 | 2860 | ||