From: Tom Schwindl Date: Mon, 26 Sep 2022 09:24:15 +0000 (+0000) Subject: dmenu: use die() to print the usage message X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=7ec32fe4944d4f7137cf2a23366324ffe0f10a70;p=suckless%2Fdmenu.git dmenu: use die() to print the usage message --- diff --git a/dmenu.c b/dmenu.c index 818313a..7cf253b 100644 --- a/dmenu.c +++ b/dmenu.c @@ -710,9 +710,8 @@ setup(void) static void usage(void) { - fputs("usage: dmenu [-bfiv] [-l lines] [-p prompt] [-fn font] [-m monitor]\n" - " [-nb color] [-nf color] [-sb color] [-sf color] [-w windowid]\n", stderr); - exit(1); + die("usage: dmenu [-bfiv] [-l lines] [-p prompt] [-fn font] [-m monitor]\n" + " [-nb color] [-nf color] [-sb color] [-sf color] [-w windowid]"); } int