[hackers] [dmenu] [PATCH] dmenu: use die() to print the usage message

From: Tom Schwindl <schwindl_AT_posteo.de>
Date: Mon, 26 Sep 2022 09:24:15 +0000

---
 dmenu.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/dmenu.c b/dmenu.c
index 571bc3558014..999f71fa91a1 100644
--- a/dmenu.c
+++ b/dmenu.c
_AT_@ -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
-- 
2.37.3
Received on Mon Sep 26 2022 - 11:24:15 CEST

This archive was generated by hypermail 2.3.0 : Mon Sep 26 2022 - 11:36:35 CEST