gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r24099 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r24099 - gnunet/src/util
Date: Fri, 28 Sep 2012 14:42:42 +0200

Author: bartpolot
Date: 2012-09-28 14:42:42 +0200 (Fri, 28 Sep 2012)
New Revision: 24099

Modified:
   gnunet/src/util/program.c
Log:
- Exit on -v, -h

Modified: gnunet/src/util/program.c
===================================================================
--- gnunet/src/util/program.c   2012-09-28 12:36:36 UTC (rev 24098)
+++ gnunet/src/util/program.c   2012-09-28 12:42:42 UTC (rev 24099)
@@ -228,7 +228,7 @@
   lpfx = GNUNET_strdup (binaryName);
   if (NULL != (spc = strstr (lpfx, " ")))
     *spc = '\0';
-  if ((-1 ==
+  if ((GNUNET_OK !=
        (ret =
         GNUNET_GETOPT_run (binaryName, allopts, (unsigned int) argc, argv))) ||
       (GNUNET_OK != GNUNET_log_setup (lpfx, loglev, logfile)))
@@ -239,7 +239,7 @@
     GNUNET_free_non_null (logfile);
     GNUNET_free (allopts);
     GNUNET_free (lpfx);
-    return GNUNET_SYSERR;
+    return ret;
   }
   (void) GNUNET_CONFIGURATION_load (cfg, cc.cfgfile);
   GNUNET_free (allopts);




reply via email to

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