aboutsummaryrefslogtreecommitdiff
path: root/src/util/program.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/program.c')
-rw-r--r--src/util/program.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/util/program.c b/src/util/program.c
index b9da14572..08effa19b 100644
--- a/src/util/program.c
+++ b/src/util/program.c
@@ -89,9 +89,13 @@ program_main (void *cls)
89 struct CommandContext *cc = cls; 89 struct CommandContext *cc = cls;
90 90
91 GNUNET_SPEEDUP_start_ (cc->cfg); 91 GNUNET_SPEEDUP_start_ (cc->cfg);
92 GNUNET_SCHEDULER_add_shutdown (&shutdown_task, NULL); 92 GNUNET_SCHEDULER_add_shutdown (&shutdown_task,
93 NULL);
93 GNUNET_RESOLVER_connect (cc->cfg); 94 GNUNET_RESOLVER_connect (cc->cfg);
94 cc->task (cc->task_cls, cc->args, cc->cfgfile, cc->cfg); 95 cc->task (cc->task_cls,
96 cc->args,
97 cc->cfgfile,
98 cc->cfg);
95} 99}
96 100
97 101
@@ -103,7 +107,8 @@ program_main (void *cls)
103 * @param a2 second command line option 107 * @param a2 second command line option
104 */ 108 */
105static int 109static int
106cmd_sorter (const void *a1, const void *a2) 110cmd_sorter (const void *a1,
111 const void *a2)
107{ 112{
108 const struct GNUNET_GETOPT_CommandLineOption *c1 = a1; 113 const struct GNUNET_GETOPT_CommandLineOption *c1 = a1;
109 const struct GNUNET_GETOPT_CommandLineOption *c2 = a2; 114 const struct GNUNET_GETOPT_CommandLineOption *c2 = a2;