wmutils

X windows manipulation utilities
git clone git://z3bra.org/wmutils
Log | Files | Refs | LICENSE

commit c78f5df8a46f834bc869ed5f672e3ee77f86ff17
parent 62588254a8049aedcf8533623090458850141f0a
Author: zebra v3.1 <z3bratabs@users.noreply.github.com>
Date:   Fri Dec 19 01:05:15 2014

Merge pull request #9 from banan4/master

check arguments number for killw
Diffstat:
 killw.c | 10 ++++++++++
 1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/killw.c b/killw.c @@ -7,9 +7,19 @@ static xcb_connection_t *conn; +static void +usage (const char *name) +{ + fprintf(stderr, "usage: %s <wid> [wid...]\n"); + exit(1); +} + int main(int argc, char **argv) { + if (argc < 2) + usage(argv[0]); + init_xcb(&conn); /* assume remaining arguments are windows */