logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git
commit: 563d40faf4f6559d4b51871da922616d59cf0632
parent fe48242ff77886cf073567ce0c83d31a52a7f056
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 21 Aug 2021 00:21:44 +0200

bin/humanize.c: formatting

Diffstat:

Mbin/humanize.c8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/bin/humanize.c b/bin/humanize.c @@ -24,9 +24,9 @@ int main(int argc, char *argv[]) { int c; - int flags = HN_NOSPACE | HN_DECIMAL; + int flags = HN_NOSPACE | HN_DECIMAL; // default to -d - int divisor = HN_DIVISOR_1000; + int divisor = HN_DIVISOR_1000; size_t buflen = 6; while((c = getopt(argc, argv, "bd")) != -1) @@ -35,11 +35,11 @@ main(int argc, char *argv[]) { case 'b': divisor = ~HN_DIVISOR_1000; - buflen = 7; // 4 digits, 3 letters for suffix, NUL byte + buflen = 7; // 4 digits, 3 letters for suffix, NUL byte break; case 'd': divisor = HN_DIVISOR_1000; - buflen = 6; // 4 digits, 2 letters for suffix, NUL byte + buflen = 6; // 4 digits, 2 letters for suffix, NUL byte break; case '?': fprintf(stderr, "Error: Unrecognised option: '-%c'\n", optopt);