aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2012-09-28 12:42:42 +0000
committerBart Polot <bart@net.in.tum.de>2012-09-28 12:42:42 +0000
commit15ffe5e77eff6341e44305a5b80e5cb3b379406e (patch)
tree0b912b295722488bc420462e16e2645587c4f3dc /src/util
parent18950c7644481d5ea1a3789d8fc394404eca591d (diff)
downloadgnunet-15ffe5e77eff6341e44305a5b80e5cb3b379406e.tar.gz
gnunet-15ffe5e77eff6341e44305a5b80e5cb3b379406e.zip
- Exit on -v, -h
Diffstat (limited to 'src/util')
-rw-r--r--src/util/program.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/program.c b/src/util/program.c
index 9e1a83d0b..4e31333e2 100644
--- a/src/util/program.c
+++ b/src/util/program.c
@@ -228,7 +228,7 @@ GNUNET_PROGRAM_run2 (int argc, char *const *argv, const char *binaryName,
228 lpfx = GNUNET_strdup (binaryName); 228 lpfx = GNUNET_strdup (binaryName);
229 if (NULL != (spc = strstr (lpfx, " "))) 229 if (NULL != (spc = strstr (lpfx, " ")))
230 *spc = '\0'; 230 *spc = '\0';
231 if ((-1 == 231 if ((GNUNET_OK !=
232 (ret = 232 (ret =
233 GNUNET_GETOPT_run (binaryName, allopts, (unsigned int) argc, argv))) || 233 GNUNET_GETOPT_run (binaryName, allopts, (unsigned int) argc, argv))) ||
234 (GNUNET_OK != GNUNET_log_setup (lpfx, loglev, logfile))) 234 (GNUNET_OK != GNUNET_log_setup (lpfx, loglev, logfile)))
@@ -239,7 +239,7 @@ GNUNET_PROGRAM_run2 (int argc, char *const *argv, const char *binaryName,
239 GNUNET_free_non_null (logfile); 239 GNUNET_free_non_null (logfile);
240 GNUNET_free (allopts); 240 GNUNET_free (allopts);
241 GNUNET_free (lpfx); 241 GNUNET_free (lpfx);
242 return GNUNET_SYSERR; 242 return ret;
243 } 243 }
244 (void) GNUNET_CONFIGURATION_load (cfg, cc.cfgfile); 244 (void) GNUNET_CONFIGURATION_load (cfg, cc.cfgfile);
245 GNUNET_free (allopts); 245 GNUNET_free (allopts);