diff options
author | Bart Polot <bart@net.in.tum.de> | 2012-09-28 12:36:36 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2012-09-28 12:36:36 +0000 |
commit | 18950c7644481d5ea1a3789d8fc394404eca591d (patch) | |
tree | 145bf85cc054c8983f2dc35440caa7e4dee66bfe /src/util/getopt_helpers.c | |
parent | 15e0bcb27f2d9eede1f4ae2ce80bc87f2bca6c65 (diff) | |
download | gnunet-18950c7644481d5ea1a3789d8fc394404eca591d.tar.gz gnunet-18950c7644481d5ea1a3789d8fc394404eca591d.zip |
Passing -v or -h options to a command no longer returns error code
Diffstat (limited to 'src/util/getopt_helpers.c')
-rw-r--r-- | src/util/getopt_helpers.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/getopt_helpers.c b/src/util/getopt_helpers.c index a80bff4a3..1e3b05cb5 100644 --- a/src/util/getopt_helpers.c +++ b/src/util/getopt_helpers.c | |||
@@ -38,7 +38,7 @@ | |||
38 | * @param scls additional closure (points to version string) | 38 | * @param scls additional closure (points to version string) |
39 | * @param option name of the option | 39 | * @param option name of the option |
40 | * @param value not used (NULL) | 40 | * @param value not used (NULL) |
41 | * @return GNUNET_SYSERR (do not continue) | 41 | * @return GNUNET_NO (do not continue, not an error) |
42 | */ | 42 | */ |
43 | int | 43 | int |
44 | GNUNET_GETOPT_print_version_ (struct GNUNET_GETOPT_CommandLineProcessorContext | 44 | GNUNET_GETOPT_print_version_ (struct GNUNET_GETOPT_CommandLineProcessorContext |
@@ -48,7 +48,7 @@ GNUNET_GETOPT_print_version_ (struct GNUNET_GETOPT_CommandLineProcessorContext | |||
48 | const char *version = scls; | 48 | const char *version = scls; |
49 | 49 | ||
50 | printf ("%s v%s\n", ctx->binaryName, version); | 50 | printf ("%s v%s\n", ctx->binaryName, version); |
51 | return GNUNET_SYSERR; | 51 | return GNUNET_NO; |
52 | } | 52 | } |
53 | 53 | ||
54 | 54 | ||
@@ -62,7 +62,7 @@ GNUNET_GETOPT_print_version_ (struct GNUNET_GETOPT_CommandLineProcessorContext | |||
62 | * @param scls additional closure (points to about text) | 62 | * @param scls additional closure (points to about text) |
63 | * @param option name of the option | 63 | * @param option name of the option |
64 | * @param value not used (NULL) | 64 | * @param value not used (NULL) |
65 | * @return GNUNET_SYSERR (do not continue) | 65 | * @return GNUNET_NO (do not continue, not an error) |
66 | */ | 66 | */ |
67 | int | 67 | int |
68 | GNUNET_GETOPT_format_help_ (struct GNUNET_GETOPT_CommandLineProcessorContext | 68 | GNUNET_GETOPT_format_help_ (struct GNUNET_GETOPT_CommandLineProcessorContext |
@@ -152,7 +152,7 @@ OUTER: | |||
152 | printf ("Report bugs to gnunet-developers@gnu.org.\n" | 152 | printf ("Report bugs to gnunet-developers@gnu.org.\n" |
153 | "GNUnet home page: http://www.gnu.org/software/gnunet/\n" | 153 | "GNUnet home page: http://www.gnu.org/software/gnunet/\n" |
154 | "General help using GNU software: http://www.gnu.org/gethelp/\n"); | 154 | "General help using GNU software: http://www.gnu.org/gethelp/\n"); |
155 | return GNUNET_SYSERR; | 155 | return GNUNET_NO; |
156 | } | 156 | } |
157 | 157 | ||
158 | 158 | ||