From 3e9fb29b23566fb34978126a9c51845ed8159379 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 27 Apr 2024 20:13:23 +0200 Subject: Remove useless for-loop in usage() --- lib/errors/usage.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/errors/usage.c b/lib/errors/usage.c index 50ca04f..dee4144 100644 --- a/lib/errors/usage.c +++ b/lib/errors/usage.c @@ -15,12 +15,8 @@ void va_start(ap, s); fprintf(stderr, "Usage: %s %s\n", mlib_progname(), s); - - while ((s = va_arg(ap, char *)) != nullptr) { - for (size_t i = 0; i < lengthof("Usage: ") - 1; i++) - fputc(' ', stderr); - fprintf(stderr, "%s %s\n", mlib_progname(), s); - } + while ((s = va_arg(ap, char *)) != nullptr) + fprintf(stderr, " %s %s\n", mlib_progname(), s); va_end(ap); } -- cgit v1.2.3