gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: -fix return value of taler-fakeb


From: gnunet
Subject: [taler-exchange] branch master updated: -fix return value of taler-fakebank-run with -h option
Date: Sun, 15 May 2022 18:41:21 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 84b8886b -fix return value of taler-fakebank-run with -h option
84b8886b is described below

commit 84b8886b12d206c47a02061a395160402a0cafb7
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun May 15 18:41:17 2022 +0200

    -fix return value of taler-fakebank-run with -h option
---
 src/bank-lib/taler-fakebank-run.c | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/src/bank-lib/taler-fakebank-run.c 
b/src/bank-lib/taler-fakebank-run.c
index 866d3511..4e370607 100644
--- a/src/bank-lib/taler-fakebank-run.c
+++ b/src/bank-lib/taler-fakebank-run.c
@@ -185,14 +185,17 @@ main (int argc,
                                &num_threads),
     GNUNET_GETOPT_OPTION_END
   };
-
-  if (GNUNET_OK !=
-      GNUNET_PROGRAM_run (argc, argv,
-                          "taler-fakebank-run",
-                          "Runs the fakebank",
-                          options,
-                          &run,
-                          NULL))
+  enum GNUNET_GenericReturnValue iret;
+
+  iret = GNUNET_PROGRAM_run (argc, argv,
+                             "taler-fakebank-run",
+                             "Runs the fakebank",
+                             options,
+                             &run,
+                             NULL);
+  if (GNUNET_SYSERR == iret)
     return EXIT_INVALIDARGUMENT;
+  if (GNUNET_NO == iret)
+    return EXIT_SUCCESS;
   return ret;
 }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]