From: Niels Möller Date: Fri, 9 Apr 2010 13:52:51 +0000 (+0200) Subject: (main): With no command line arguments. exit after dislaying usage X-Git-Tag: camellia_32bit_20100720~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c944a4e39651d39a3398f23263b7cec1c97c4d44;p=thirdparty%2Fnettle.git (main): With no command line arguments. exit after dislaying usage message. Rev: nettle/examples/next-prime.c:1.4 --- diff --git a/examples/next-prime.c b/examples/next-prime.c index 584835f4..5283eccd 100644 --- a/examples/next-prime.c +++ b/examples/next-prime.c @@ -61,7 +61,7 @@ main(int argc, char **argv) clock_t start; clock_t end; - enum { OPT_FACTORIAL = -100, OPT_RANDOM }; + enum { OPT_FACTORIAL = -100 }; static const struct option options[] = { /* Name, args, flag, val */ @@ -101,7 +101,10 @@ main(int argc, char **argv) argv += optind; if (argc != 1) - usage(); + { + usage(); + return EXIT_FAILURE; + } mpz_init(n);