From 51f09cc007f42e4866857a5e540fa7f9a6a61006 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Sun, 29 Jan 2006 22:32:20 +0200 Subject: [PATCH] printing usage() instead of crappy error messgae in wmiibar --- cmd/wmiibar.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/wmiibar.c b/cmd/wmiibar.c index 0be09042..e0d3aae0 100644 --- a/cmd/wmiibar.c +++ b/cmd/wmiibar.c @@ -1003,10 +1003,8 @@ main(int argc, char *argv[]) XSetErrorHandler(dummy_error_handler); screen_num = DefaultScreen(dpy); - if(!address) { - fprintf(stderr, "%s\n", "wmiibar: no socket address provided"); - exit(1); - } + if(!address) + usage(); i = ixp_create_sock(address, &errstr); if(i < 0) { fprintf(stderr, "wmiibar: fatal: %s\n", errstr);