diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-03-15 08:29:22 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-03-15 08:29:22 +0000 |
commit | c7bda1ce659294d6e22c06e087f6f265983c7578 (patch) | |
tree | 4c6d2217f4d8306c59cf1096f8664e1cfd167213 /libbb/human_readable.c | |
parent | 8854004b41065b3d081af7f3df13a100b0c8bfbe (diff) | |
download | busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.gz busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.bz2 busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.zip |
Remove trailing whitespace. Update copyright to include 2004.
Diffstat (limited to 'libbb/human_readable.c')
-rw-r--r-- | libbb/human_readable.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libbb/human_readable.c b/libbb/human_readable.c index 656889150..ad9025c08 100644 --- a/libbb/human_readable.c +++ b/libbb/human_readable.c | |||
@@ -13,8 +13,8 @@ | |||
13 | * representations (say, powers of 1024) and manipulating coefficients. | 13 | * representations (say, powers of 1024) and manipulating coefficients. |
14 | * The base ten "bytes" output could be handled similarly. | 14 | * The base ten "bytes" output could be handled similarly. |
15 | * | 15 | * |
16 | * 2) This routine always outputs a decimal point and a tenths digit when | 16 | * 2) This routine always outputs a decimal point and a tenths digit when |
17 | * display_unit != 0. Hence, it isn't uncommon for the returned string | 17 | * display_unit != 0. Hence, it isn't uncommon for the returned string |
18 | * to have a length of 5 or 6. | 18 | * to have a length of 5 or 6. |
19 | * | 19 | * |
20 | * It might be nice to add a flag to indicate no decimal digits in | 20 | * It might be nice to add a flag to indicate no decimal digits in |
@@ -28,7 +28,7 @@ | |||
28 | #include <stdio.h> | 28 | #include <stdio.h> |
29 | #include "libbb.h" | 29 | #include "libbb.h" |
30 | 30 | ||
31 | const char *make_human_readable_str(unsigned long long size, | 31 | const char *make_human_readable_str(unsigned long long size, |
32 | unsigned long block_size, unsigned long display_unit) | 32 | unsigned long block_size, unsigned long display_unit) |
33 | { | 33 | { |
34 | /* The code will adjust for additional (appended) units. */ | 34 | /* The code will adjust for additional (appended) units. */ |
@@ -37,7 +37,7 @@ const char *make_human_readable_str(unsigned long long size, | |||
37 | static const char fmt_tenths[] = "%Lu.%d%c"; | 37 | static const char fmt_tenths[] = "%Lu.%d%c"; |
38 | 38 | ||
39 | static char str[21]; /* Sufficient for 64 bit unsigned integers. */ | 39 | static char str[21]; /* Sufficient for 64 bit unsigned integers. */ |
40 | 40 | ||
41 | unsigned long long val; | 41 | unsigned long long val; |
42 | int frac; | 42 | int frac; |
43 | const char *u; | 43 | const char *u; |