summaryrefslogtreecommitdiff
path: root/src/arm/gnunet-arm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arm/gnunet-arm.c')
-rw-r--r--src/arm/gnunet-arm.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/arm/gnunet-arm.c b/src/arm/gnunet-arm.c
index 5a4acb31a..7d705733a 100644
--- a/src/arm/gnunet-arm.c
+++ b/src/arm/gnunet-arm.c
@@ -799,25 +799,26 @@ main (int argc, char *const *argv)
gettext_noop ("don't let gnunet-service-arm inherit standard error"),
&no_stderr),
GNUNET_GETOPT_OPTION_END};
+ int lret;
if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv))
return 2;
if (GNUNET_OK ==
- GNUNET_PROGRAM_run (
- argc,
- argv,
- "gnunet-arm",
- gettext_noop (
- "Control services and the Automated Restart Manager (ARM)"),
- options,
- &run,
- NULL))
+ (lret = GNUNET_PROGRAM_run (
+ argc,
+ argv,
+ "gnunet-arm",
+ gettext_noop (
+ "Control services and the Automated Restart Manager (ARM)"),
+ options,
+ &run,
+ NULL)))
{
GNUNET_free ((void *) argv);
return ret;
}
GNUNET_free ((void *) argv);
- return 1;
+ return lret;
}
/* end of gnunet-arm.c */