mirror of
https://github.com/0intro/wmii
synced 2024-12-16 16:42:38 +03:00
printing usage() instead of crappy error messgae in wmiibar
This commit is contained in:
parent
53ecafb2e3
commit
51f09cc007
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user