aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-03-15 10:17:44 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-03-15 10:17:44 +0000
commitbd90436cb20a1d6016b657b9514f0699b99f0f87 (patch)
tree55c433ea0f8046a1ab2f2302dc4730646f908dc9 /src
parent3d663c1dcd930c7e5fda7eadf0fabbb3e3f0beb8 (diff)
downloadgnunet-bd90436cb20a1d6016b657b9514f0699b99f0f87.tar.gz
gnunet-bd90436cb20a1d6016b657b9514f0699b99f0f87.zip
- improve documentation
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_program_lib.h4
-rw-r--r--src/util/program.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/include/gnunet_program_lib.h b/src/include/gnunet_program_lib.h
index 5bce4820b..fa96ecf3c 100644
--- a/src/include/gnunet_program_lib.h
+++ b/src/include/gnunet_program_lib.h
@@ -64,7 +64,7 @@ typedef void (*GNUNET_PROGRAM_Main) (void *cls, char *const *args,
64 * @param options command line options 64 * @param options command line options
65 * @param task main function to run 65 * @param task main function to run
66 * @param task_cls closure for task 66 * @param task_cls closure for task
67 * @param run_with_schedule GNUNET_YES start the scheduler, GNUNET_NO do not 67 * @param run_without_scheduler GNUNET_NO start the scheduler, GNUNET_YES do not
68 * start the scheduler just run the main task 68 * start the scheduler just run the main task
69 * @return GNUNET_SYSERR on error, GNUNET_OK on success 69 * @return GNUNET_SYSERR on error, GNUNET_OK on success
70 */ 70 */
@@ -73,7 +73,7 @@ GNUNET_PROGRAM_run2 (int argc, char *const *argv, const char *binaryName,
73 const char *binaryHelp, 73 const char *binaryHelp,
74 const struct GNUNET_GETOPT_CommandLineOption *options, 74 const struct GNUNET_GETOPT_CommandLineOption *options,
75 GNUNET_PROGRAM_Main task, void *task_cls, 75 GNUNET_PROGRAM_Main task, void *task_cls,
76 int run_with_schedule); 76 int run_without_scheduler);
77 77
78/** 78/**
79 * Run a standard GNUnet command startup sequence (initialize loggers 79 * Run a standard GNUnet command startup sequence (initialize loggers
diff --git a/src/util/program.c b/src/util/program.c
index 597bd7584..bfa58dc65 100644
--- a/src/util/program.c
+++ b/src/util/program.c
@@ -125,7 +125,7 @@ cmd_sorter (__const void *a1, __const void *a2)
125 * @param options command line options 125 * @param options command line options
126 * @param task main function to run 126 * @param task main function to run
127 * @param task_cls closure for task 127 * @param task_cls closure for task
128 * @param run_with_schedule GNUNET_NO start the scheduler, GNUNET_YES do not 128 * @param run_without_scheduler GNUNET_NO start the scheduler, GNUNET_YES do not
129 * start the scheduler just run the main task 129 * start the scheduler just run the main task
130 * @return GNUNET_SYSERR on error, GNUNET_OK on success 130 * @return GNUNET_SYSERR on error, GNUNET_OK on success
131 */ 131 */
@@ -134,7 +134,7 @@ GNUNET_PROGRAM_run2 (int argc, char *const *argv, const char *binaryName,
134 const char *binaryHelp, 134 const char *binaryHelp,
135 const struct GNUNET_GETOPT_CommandLineOption *options, 135 const struct GNUNET_GETOPT_CommandLineOption *options,
136 GNUNET_PROGRAM_Main task, void *task_cls, 136 GNUNET_PROGRAM_Main task, void *task_cls,
137 int run_with_schedule) 137 int run_without_scheduler)
138{ 138{
139 struct CommandContext cc; 139 struct CommandContext cc;
140 char *path; 140 char *path;
@@ -250,7 +250,7 @@ GNUNET_PROGRAM_run2 (int argc, char *const *argv, const char *binaryName,
250 } 250 }
251 /* run */ 251 /* run */
252 cc.args = &argv[ret]; 252 cc.args = &argv[ret];
253 if (GNUNET_NO == run_with_schedule) 253 if (GNUNET_NO == run_without_scheduler)
254 { 254 {
255 GNUNET_SCHEDULER_run (&program_main, &cc); 255 GNUNET_SCHEDULER_run (&program_main, &cc);
256 } 256 }