diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-11-01 20:47:52 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-11-01 20:47:52 +0000 |
commit | 652e89b59ed2207c2c12172fdabcd6e659995c81 (patch) | |
tree | f054c819d483c1056e18c1099afd4c7fcd2582a0 /src/util/program.c | |
parent | 5e4113e83368849500792e57946c3d8dd9e548d8 (diff) | |
download | gnunet-652e89b59ed2207c2c12172fdabcd6e659995c81.tar.gz gnunet-652e89b59ed2207c2c12172fdabcd6e659995c81.zip |
fixing bio testcase and a bug in bio.c, also indenting
Diffstat (limited to 'src/util/program.c')
-rw-r--r-- | src/util/program.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/program.c b/src/util/program.c index aa272ea96..695a6f9bc 100644 --- a/src/util/program.c +++ b/src/util/program.c | |||
@@ -89,10 +89,10 @@ program_main (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
89 | * @param a2 second command line option | 89 | * @param a2 second command line option |
90 | */ | 90 | */ |
91 | static int | 91 | static int |
92 | cmd_sorter (const void *a1, const void *a2) | 92 | cmd_sorter (__const void *a1, __const void *a2) |
93 | { | 93 | { |
94 | const struct GNUNET_GETOPT_CommandLineOption *c1 = a1; | 94 | __const struct GNUNET_GETOPT_CommandLineOption *c1 = a1; |
95 | const struct GNUNET_GETOPT_CommandLineOption *c2 = a2; | 95 | __const struct GNUNET_GETOPT_CommandLineOption *c2 = a2; |
96 | if (toupper (c1->shortName) > toupper (c2->shortName)) | 96 | if (toupper (c1->shortName) > toupper (c2->shortName)) |
97 | return 1; | 97 | return 1; |
98 | if (toupper (c1->shortName) < toupper (c2->shortName)) | 98 | if (toupper (c1->shortName) < toupper (c2->shortName)) |
@@ -174,7 +174,7 @@ GNUNET_PROGRAM_run (int argc, | |||
174 | qsort (allopts, cnt, sizeof (struct GNUNET_GETOPT_CommandLineOption), | 174 | qsort (allopts, cnt, sizeof (struct GNUNET_GETOPT_CommandLineOption), |
175 | &cmd_sorter); | 175 | &cmd_sorter); |
176 | loglev = GNUNET_strdup ("WARNING"); | 176 | loglev = GNUNET_strdup ("WARNING"); |
177 | if ((-1 == (ret = GNUNET_GETOPT_run (binaryName, | 177 | if ((-1 == (ret = GNUNET_GETOPT_run (binaryName, |
178 | allopts, | 178 | allopts, |
179 | (unsigned int) argc, argv))) || | 179 | (unsigned int) argc, argv))) || |
180 | ((GNUNET_OK != | 180 | ((GNUNET_OK != |