dmenu: use die() to print the usage message - dmenu - dynamic menu | |
git clone git://git.suckless.org/dmenu | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 7ec32fe4944d4f7137cf2a23366324ffe0f10a70 | |
parent fce06f437dcec646ee0a2728fe695f3084cc6ccb | |
Author: Tom Schwindl <[email protected]> | |
Date: Mon, 26 Sep 2022 09:24:15 +0000 | |
dmenu: use die() to print the usage message | |
Diffstat: | |
M dmenu.c | 5 ++--- | |
1 file changed, 2 insertions(+), 3 deletions(-) | |
--- | |
diff --git 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 moni… | |
- " [-nb color] [-nf color] [-sb color] [-sf color] [-… | |
- exit(1); | |
+ die("usage: dmenu [-bfiv] [-l lines] [-p prompt] [-fn font] [-m monito… | |
+ " [-nb color] [-nf color] [-sb color] [-sf color] [-w … | |
} | |
int |