summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.c b/main.c
index c3a4203..2b48d05 100644
--- a/main.c
+++ b/main.c
@@ -5,8 +5,9 @@
#include <fcntl.h>
#include <getopt.h>
#include <limits.h>
-#include <unistd.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
#include "aports-cache.h"
@@ -22,6 +23,7 @@ static void usage(int exitcode)
" -v,--verbose enable verbose mode\n"
" -s,--shell PROG use PROG as shell instead of /bin/sh\n"
"\n", program_invocation_name);
+ exit(exitcode);
}
int main(int argc, char *argv[])