Browse Source
Print usage() when we are left with arguments
master
Laslo Hunhold
8 years ago
committed by
Aaron Marcher
No known key found for this signature in database
GPG Key ID: 74B048E5C2474F9A
1 changed files with
4 additions and
0 deletions
-
slstatus.c
|
|
@ -861,6 +861,10 @@ main(int argc, char *argv[]) |
|
|
usage(); |
|
|
usage(); |
|
|
} ARGEND |
|
|
} ARGEND |
|
|
|
|
|
|
|
|
|
|
|
if (argc) { |
|
|
|
|
|
usage(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
memset(&act, 0, sizeof(act)); |
|
|
memset(&act, 0, sizeof(act)); |
|
|
act.sa_handler = sighandler; |
|
|
act.sa_handler = sighandler; |
|
|
sigaction(SIGINT, &act, 0); |
|
|
sigaction(SIGINT, &act, 0); |
|
|
|