-fix return value of taler-fakebank-run with -h option

This commit is contained in:
Christian Grothoff 2022-05-15 18:41:17 +02:00
parent 6150713fc4
commit 84b8886b12
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -185,14 +185,17 @@ main (int argc,
&num_threads),
GNUNET_GETOPT_OPTION_END
};
enum GNUNET_GenericReturnValue iret;
if (GNUNET_OK !=
GNUNET_PROGRAM_run (argc, argv,
iret = GNUNET_PROGRAM_run (argc, argv,
"taler-fakebank-run",
"Runs the fakebank",
options,
&run,
NULL))
NULL);
if (GNUNET_SYSERR == iret)
return EXIT_INVALIDARGUMENT;
if (GNUNET_NO == iret)
return EXIT_SUCCESS;
return ret;
}