aboutsummaryrefslogtreecommitdiff
path: root/coreutils/du.c
diff options
context:
space:
mode:
authorGravatar Mark Whitley <markw@lineo.com>2001-03-07 17:42:07 +0000
committerGravatar Mark Whitley <markw@lineo.com>2001-03-07 17:42:07 +0000
commitae5612ca6e74ba251cd10fc853dcf9694c0fecf1 (patch)
treeba3e50459f4b4ae476ce19e797c68c5e6de055e0 /coreutils/du.c
parentae20128e9f7a7d31629079068b04cf7119cc40df (diff)
downloadbusybox-ae5612ca6e74ba251cd10fc853dcf9694c0fecf1.tar.gz
busybox-ae5612ca6e74ba251cd10fc853dcf9694c0fecf1.tar.bz2
Some minor cleanups to df.c. Also, with Erik's blessing, changed name of
'format' function to 'make_human_readable_str'.
Diffstat (limited to 'coreutils/du.c')
-rw-r--r--coreutils/du.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/du.c b/coreutils/du.c
index 36c4de290..17ecfdeac 100644
--- a/coreutils/du.c
+++ b/coreutils/du.c
@@ -60,7 +60,7 @@ static void print_normal(long size, char *filename)
default:
base = 0;
}
-printf("%s\t%s\n", format(size, base), filename);
+ printf("%s\t%s\n", make_human_readable_str(size, base), filename);
#else
printf("%ld\t%s\n", size, filename);
#endif
@@ -69,7 +69,7 @@ printf("%s\t%s\n", format(size, base), filename);
static void print_summary(long size, char *filename)
{
if (du_depth == 1) {
-printf("summary\n");
+ printf("summary\n");
print_normal(size, filename);
}
}
@@ -196,7 +196,7 @@ int du_main(int argc, char **argv)
return status;
}
-/* $Id: du.c,v 1.41 2001/03/07 06:04:08 andersen Exp $ */
+/* $Id: du.c,v 1.42 2001/03/07 17:42:07 markw Exp $ */
/*
Local Variables:
c-file-style: "linux"