aboutsummaryrefslogtreecommitdiff
path: root/src/conversation/gnunet-conversation.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
committerChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
commit29e6158507a0758192075ac6ece7ba8e75ddc49a (patch)
treeb91ded48da322f8ba4c9bb0f5504228aa036c2d1 /src/conversation/gnunet-conversation.c
parent5dfcb058ab5db9ae0c4b147d8a99c64ca0980028 (diff)
downloadgnunet-29e6158507a0758192075ac6ece7ba8e75ddc49a.tar.gz
gnunet-29e6158507a0758192075ac6ece7ba8e75ddc49a.zip
small API change: do no longer pass rarely needed GNUNET_SCHEDULER_TaskContext to all scheduler tasks; instead, allow the relatively few tasks that need it to obtain the context via GNUNET_SCHEDULER_get_task_context()
Diffstat (limited to 'src/conversation/gnunet-conversation.c')
-rw-r--r--src/conversation/gnunet-conversation.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/conversation/gnunet-conversation.c b/src/conversation/gnunet-conversation.c
index 3b50c8043..9000bcf3f 100644
--- a/src/conversation/gnunet-conversation.c
+++ b/src/conversation/gnunet-conversation.c
@@ -1020,11 +1020,9 @@ do_help (const char *args)
1020 * Task run during shutdown. 1020 * Task run during shutdown.
1021 * 1021 *
1022 * @param cls NULL 1022 * @param cls NULL
1023 * @param tc unused
1024 */ 1023 */
1025static void 1024static void
1026do_stop_task (void *cls, 1025do_stop_task (void *cls)
1027 const struct GNUNET_SCHEDULER_TaskContext *tc)
1028{ 1026{
1029#ifdef WINDOWS 1027#ifdef WINDOWS
1030 if (NULL != stdin_hlp) 1028 if (NULL != stdin_hlp)
@@ -1132,11 +1130,9 @@ console_reader_chars (void *cls,
1132 * Task to handle commands from the terminal. 1130 * Task to handle commands from the terminal.
1133 * 1131 *
1134 * @param cls NULL 1132 * @param cls NULL
1135 * @param tc scheduler context
1136 */ 1133 */
1137static void 1134static void
1138handle_command (void *cls, 1135handle_command (void *cls)
1139 const struct GNUNET_SCHEDULER_TaskContext *tc)
1140{ 1136{
1141 char message[MAX_MESSAGE_LENGTH + 1]; 1137 char message[MAX_MESSAGE_LENGTH + 1];
1142 1138