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.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.c')
-rw-r--r-- | src/util/getopt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/getopt.c b/src/util/getopt.c index 415bb4b6b..b5dc3031b 100644 --- a/src/util/getopt.c +++ b/src/util/getopt.c | |||
@@ -939,8 +939,8 @@ GNUNET_GETOPT_run (const char *binaryOptions, | |||
939 | 939 | ||
940 | GNUNET_free (shorts); | 940 | GNUNET_free (shorts); |
941 | GNUNET_free (long_options); | 941 | GNUNET_free (long_options); |
942 | if (cont == GNUNET_SYSERR) | 942 | if (cont != GNUNET_OK) |
943 | return GNUNET_SYSERR; | 943 | return cont; |
944 | return GNoptind; | 944 | return GNoptind; |
945 | } | 945 | } |
946 | 946 | ||