[hackers] [dmenu] dmenu: use die() to print the usage message || Tom Schwindl

From: <git_AT_suckless.org>
Date: Sat, 1 Oct 2022 13:21:12 +0200 (CEST)

commit 7ec32fe4944d4f7137cf2a23366324ffe0f10a70
Author: Tom Schwindl <schwindl_AT_posteo.de>
AuthorDate: Mon Sep 26 09:24:15 2022 +0000
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Sat Oct 1 13:20:40 2022 +0200

    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
_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
Received on Sat Oct 01 2022 - 13:21:12 CEST

This archive was generated by hypermail 2.3.0 : Sat Oct 01 2022 - 13:24:36 CEST