slstatus

My fork of https://tools.suckless.org/slstatus/
git clone https://git.inz.fi/slstatus
Log | Files | Refs | README | LICENSE

commit 00ce7a746ab0630e7d3b84288307435c6d62610a
parent c9d47405f4ab3cf99d7d2116fbb7622c02a27e5e
Author: Laslo Hunhold <dev@frign.de>
Date:   Thu, 10 Aug 2017 22:23:55 +0200

Print usage() when we are left with arguments

Diffstat:
Mslstatus.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/slstatus.c b/slstatus.c @@ -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);