diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-03-15 11:29:22 +0300 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-03-15 11:29:22 +0300 |
commit | c7bda1ce659294d6e22c06e087f6f265983c7578 (patch) | |
tree | 4c6d2217f4d8306c59cf1096f8664e1cfd167213 /coreutils/df.c | |
parent | 8854004b41065b3d081af7f3df13a100b0c8bfbe (diff) |
Remove trailing whitespace. Update copyright to include 2004.
Diffstat (limited to 'coreutils/df.c')
-rw-r--r-- | coreutils/df.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/coreutils/df.c b/coreutils/df.c index 9c0d13f62..9d53f2bc4 100644 --- a/coreutils/df.c +++ b/coreutils/df.c @@ -2,7 +2,7 @@ /* * Mini df implementation for busybox * - * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org> + * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> * based on original code by (I think) Bruce Perens <bruce@pixar.com>. * * This program is free software; you can redistribute it and/or modify @@ -51,7 +51,7 @@ extern int df_main(int argc, char **argv) long blocks_used; long blocks_percent_used; #ifdef CONFIG_FEATURE_HUMAN_READABLE - unsigned long df_disp_hr = KILOBYTE; + unsigned long df_disp_hr = KILOBYTE; #endif int status = EXIT_SUCCESS; unsigned long opt; @@ -115,7 +115,7 @@ extern int df_main(int argc, char **argv) bb_perror_msg("%s", mount_point); goto SET_ERROR; } - + if ((s.f_blocks > 0) || !mount_table){ blocks_used = s.f_blocks - s.f_bfree; blocks_percent_used = 0; @@ -124,7 +124,7 @@ extern int df_main(int argc, char **argv) + (blocks_used + s.f_bavail)/2 ) / (blocks_used + s.f_bavail); } - + if (strcmp(device, "rootfs") == 0) { continue; } else if (strcmp(device, "/dev/root") == 0) { @@ -134,15 +134,15 @@ extern int df_main(int argc, char **argv) goto SET_ERROR; } } - + #ifdef CONFIG_FEATURE_HUMAN_READABLE bb_printf("%-21s%9s ", device, make_human_readable_str(s.f_blocks, s.f_bsize, df_disp_hr)); - + bb_printf("%9s ", make_human_readable_str( (s.f_blocks - s.f_bfree), s.f_bsize, df_disp_hr)); - + bb_printf("%9s %3ld%% %s\n", make_human_readable_str(s.f_bavail, s.f_bsize, df_disp_hr), blocks_percent_used, mount_point); |