Print usage() when we are left with arguments

This commit is contained in:
Laslo Hunhold authored and Aaron Marcher committed 2017-08-10 22:33:05 +02:00
1 parent c9d47405f4
commit 00ce7a746a
1 file changed
+4
+4
View File
@@ -861,6 +861,10 @@ main(int argc, char *argv[])
usage();
} ARGEND
if (argc) {
usage();
}
memset(&act, 0, sizeof(act));
act.sa_handler = sighandler;
sigaction(SIGINT, &act, 0);