verr: Remove special "usage" case
In function verr, remove special case for "usage" string Co-authored-by: drkhsh <me@drkhsh.at> Signed-off-by: drkhsh <me@drkhsh.at>
This commit is contained in:
parent
e22d447684
commit
0e2ff8dc10
1 changed files with 0 additions and 3 deletions
3
util.c
3
util.c
|
@ -13,9 +13,6 @@ char *argv0;
|
||||||
static void
|
static void
|
||||||
verr(const char *fmt, va_list ap)
|
verr(const char *fmt, va_list ap)
|
||||||
{
|
{
|
||||||
if (argv0 && strncmp(fmt, "usage", sizeof("usage") - 1))
|
|
||||||
fprintf(stderr, "%s: ", argv0);
|
|
||||||
|
|
||||||
vfprintf(stderr, fmt, ap);
|
vfprintf(stderr, fmt, ap);
|
||||||
|
|
||||||
if (fmt[0] && fmt[strlen(fmt) - 1] == ':') {
|
if (fmt[0] && fmt[strlen(fmt) - 1] == ':') {
|
||||||
|
|
Loading…
Reference in a new issue