diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-09 23:14:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-09 23:14:03 +0000 |
commit | 29e6158507a0758192075ac6ece7ba8e75ddc49a (patch) | |
tree | b91ded48da322f8ba4c9bb0f5504228aa036c2d1 /src/nse/gnunet-nse.c | |
parent | 5dfcb058ab5db9ae0c4b147d8a99c64ca0980028 (diff) | |
download | gnunet-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/nse/gnunet-nse.c')
-rw-r--r-- | src/nse/gnunet-nse.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nse/gnunet-nse.c b/src/nse/gnunet-nse.c index 29f0003cb..97c3da29b 100644 --- a/src/nse/gnunet-nse.c +++ b/src/nse/gnunet-nse.c | |||
@@ -21,7 +21,7 @@ | |||
21 | /** | 21 | /** |
22 | * @file nse/gnunet-nse.c | 22 | * @file nse/gnunet-nse.c |
23 | * @brief Program to display network size estimates from the NSE service | 23 | * @brief Program to display network size estimates from the NSE service |
24 | * @author Sree Harsha Totakura <sreeharsha@totakura.in> | 24 | * @author Sree Harsha Totakura <sreeharsha@totakura.in> |
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include "platform.h" | 27 | #include "platform.h" |
@@ -57,10 +57,9 @@ static int status; | |||
57 | * Task to shutdown and clean up all state | 57 | * Task to shutdown and clean up all state |
58 | * | 58 | * |
59 | * @param cls NULL | 59 | * @param cls NULL |
60 | * @param tc the scheduler task context | ||
61 | */ | 60 | */ |
62 | static void | 61 | static void |
63 | do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 62 | do_shutdown (void *cls) |
64 | { | 63 | { |
65 | shutdown_task = NULL; | 64 | shutdown_task = NULL; |
66 | if (NULL != test) | 65 | if (NULL != test) |
@@ -160,7 +159,7 @@ main (int argc, char *const *argv) | |||
160 | static struct GNUNET_GETOPT_CommandLineOption options[] = { | 159 | static struct GNUNET_GETOPT_CommandLineOption options[] = { |
161 | GNUNET_GETOPT_OPTION_END | 160 | GNUNET_GETOPT_OPTION_END |
162 | }; | 161 | }; |
163 | 162 | ||
164 | status = 1; | 163 | status = 1; |
165 | if (GNUNET_OK != | 164 | if (GNUNET_OK != |
166 | GNUNET_PROGRAM_run (argc, argv, "gnunet-nse", | 165 | GNUNET_PROGRAM_run (argc, argv, "gnunet-nse", |