diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-04-27 20:13:23 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-04-27 20:13:23 +0200 |
commit | 3e9fb29b23566fb34978126a9c51845ed8159379 (patch) | |
tree | b6404ccce0bc3e43a949abeb67061e42e21f430d /lib | |
parent | 7da9dc4a5276934d3b1305ded4dd95c4b1ce1dd7 (diff) |
Remove useless for-loop in usage()
Diffstat (limited to 'lib')
-rw-r--r-- | lib/errors/usage.c | 8 |
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); } |