Print usage() when we are left with arguments
Laslo Hunhold dev@frign.de
Thu, 10 Aug 2017 22:23:55 +0200
1 files changed,
4 insertions(+),
0 deletions(-)
jump to
M
slstatus.c
→
slstatus.c
@@ -861,6 +861,10 @@ default:
usage(); } ARGEND + if (argc) { + usage(); + } + memset(&act, 0, sizeof(act)); act.sa_handler = sighandler; sigaction(SIGINT, &act, 0);