aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-04-27 20:13:23 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-04-27 20:13:23 +0200
commit3e9fb29b23566fb34978126a9c51845ed8159379 (patch)
treeb6404ccce0bc3e43a949abeb67061e42e21f430d
parent7da9dc4a5276934d3b1305ded4dd95c4b1ce1dd7 (diff)
Remove useless for-loop in usage()
-rw-r--r--lib/errors/usage.c8
1 files changed, 2 insertions, 6 deletions
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);
}