projects
/
suckless
/
slstatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e22d447
)
verr: Remove special "usage" case
author
planet36
<planet36@users.noreply.github.com>
Fri, 5 Mar 2021 19:20:29 +0000
(14:20 -0500)
committer
drkhsh
<me@drkhsh.at>
Mon, 19 Dec 2022 01:44:21 +0000
(
02:44
+0100)
In function verr, remove special case for "usage"
string
Co-authored-by: drkhsh <me@drkhsh.at>
Signed-off-by: drkhsh <me@drkhsh.at>
util.c
patch
|
blob
|
history
diff --git
a/util.c
b/util.c
index d1f6077e5e2dd310bd754ae825bc7e9f7a46e9f6..bca9b2eabff3d89d838c4b47c6a5870755ef330e 100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-13,9
+13,6
@@
char *argv0;
static void
verr(const char *fmt, va_list ap)
{
- if (argv0 && strncmp(fmt, "usage", sizeof("usage") - 1))
- fprintf(stderr, "%s: ", argv0);
-
vfprintf(stderr, fmt, ap);
if (fmt[0] && fmt[strlen(fmt) - 1] == ':') {