gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis] 01/06: fix return value from main() when run with -h/-


From: gnunet
Subject: [taler-anastasis] 01/06: fix return value from main() when run with -h/-v
Date: Tue, 10 Nov 2020 13:44:48 +0100

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

dennis-neufeld pushed a commit to branch master
in repository anastasis.

commit 3bce1f8d5e551457276e226c97693085cf263ac8
Author: Dennis Neufeld <dennis.neufeld@students.bfh.ch>
AuthorDate: Tue Nov 10 10:46:49 2020 +0100

    fix return value from main() when run with -h/-v
---
 src/backend/anastasis-httpd.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/backend/anastasis-httpd.c b/src/backend/anastasis-httpd.c
index d7e09b0..bc97bc8 100644
--- a/src/backend/anastasis-httpd.c
+++ b/src/backend/anastasis-httpd.c
@@ -736,6 +736,7 @@ int
 main (int argc,
       char *const *argv)
 {
+  enum GNUNET_GenericReturnValue res;
   struct GNUNET_GETOPT_CommandLineOption options[] = {
     GNUNET_GETOPT_option_flag ('C',
                                "connection-close",
@@ -756,6 +757,9 @@ main (int argc,
                           "anastasis-httpd",
                           "Anastasis HTTP interface",
                           options, &run, NULL))
-    return 3;
+    if (GNUNET_SYSERR == res)
+      return 3;
+  if (GNUNET_NO == res)
+    return 0;
   return (GNUNET_OK == result) ? 0 : 1;
 }

-- 
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]