diff options
author | Laslo Hunhold <dev@frign.de> | 2017-08-10 22:23:55 +0200 |
---|---|---|
committer | Aaron Marcher <me@drkhsh.at> | 2017-08-10 22:33:05 +0200 |
commit | 9a91acf527487605384507d51b774cedf828e305 (patch) | |
tree | 0ae323ab3c2ac6e110ba7014002c1e296d2f1f33 /slstatus.c | |
parent | dc467c215b26301e9097a7dc7e81555ed1254a95 (diff) |
Print usage() when we are left with arguments
Diffstat (limited to 'slstatus.c')
-rw-r--r-- | slstatus.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |