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:
6
util.c
6
util.c
@ -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]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user