radical re-formatting 2/3: Fix blocks

Fixes coding style. Formatting commits suck, incoherent coding style
sucks more.
https://suckless.org/coding_style/
This commit is contained in:
drkhsh
2022-10-28 00:51:34 +02:00
parent 2104dc362c
commit 3251e91187
14 changed files with 95 additions and 154 deletions

6
util.c
View File

@ -13,9 +13,8 @@ char *argv0;
static void
verr(const char *fmt, va_list ap)
{
if (argv0 && strncmp(fmt, "usage", sizeof("usage") - 1)) {
if (argv0 && strncmp(fmt, "usage", sizeof("usage") - 1))
fprintf(stderr, "%s: ", argv0);
}
vfprintf(stderr, fmt, ap);
@ -119,9 +118,8 @@ fmt_human(uintmax_t num, int base)
}
scaled = num;
for (i = 0; i < prefixlen && scaled >= base; i++) {
for (i = 0; i < prefixlen && scaled >= base; i++)
scaled /= base;
}
return bprintf("%.1f %s", scaled, prefix[i]);
}