aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Schwindl2022-09-26 09:24:15 +0000
committerHiltjo Posthuma2022-10-01 13:20:40 +0200
commit7ec32fe4944d4f7137cf2a23366324ffe0f10a70 (patch)
treea9c6d430677a53c5374e9fa1131178f91d7bc628
parentfce06f437dcec646ee0a2728fe695f3084cc6ccb (diff)
dmenu: use die() to print the usage message
-rw-r--r--dmenu.c5
1 files changed, 2 insertions, 3 deletions
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