From aaa94730fd8aba29e06c75dd1020774c019e21a5 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Wed, 21 Nov 2012 21:39:25 -0700 Subject: [PATCH] Make factoids exit on error --- extras/factoids.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extras/factoids.c b/extras/factoids.c index 0ce6ca9..b58ca32 100644 --- a/extras/factoids.c +++ b/extras/factoids.c @@ -282,14 +282,14 @@ main(int argc, char *argv[]) } if (! (filename = argv[optind++])) { - usage(argv[0]); + return usage(argv[0]); } if ((act != ACT_NEW) && (! (key = argv[optind++]))) { - usage(argv[0]); + return usage(argv[0]); } if (argv[optind]) { - usage(argv[0]); + return usage(argv[0]); } // Seed PRNG with some crap