aboutsummaryrefslogtreecommitdiff
path: root/coreutils/df.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-10-24 05:00:29 +0000
committerEric Andersen <andersen@codepoet.org>2001-10-24 05:00:29 +0000
commitbdfd0d78bc44e73d693510e70087857785b3b521 (patch)
tree153a573095afac8d8d0ea857759ecabd77fb28b7 /coreutils/df.c
parent9260fc5552a3ee52eb95823aa6689d52a1ffd33c (diff)
downloadbusybox-w32-bdfd0d78bc44e73d693510e70087857785b3b521.tar.gz
busybox-w32-bdfd0d78bc44e73d693510e70087857785b3b521.tar.bz2
busybox-w32-bdfd0d78bc44e73d693510e70087857785b3b521.zip
Major rework of the directory structure and the entire build system.
-Erik
Diffstat (limited to 'coreutils/df.c')
-rw-r--r--coreutils/df.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/coreutils/df.c b/coreutils/df.c
index 8cb13fa6d..0e9e5d61a 100644
--- a/coreutils/df.c
+++ b/coreutils/df.c
@@ -2,8 +2,8 @@
2/* 2/*
3 * Mini df implementation for busybox 3 * Mini df implementation for busybox
4 * 4 *
5 * Copyright (C) 1999,2000,2001 by Lineo, inc. 5 * Copyright (C) 1999,2000 by Lineo, inc. and Erik Andersen
6 * Written by Erik Andersen <andersen@lineo.com>, <andersee@debian.org> 6 * Copyright (C) 1999,2000,2001 by Erik Andersen <andersee@debian.org>
7 * based on original code by (I think) Bruce Perens <bruce@pixar.com>. 7 * based on original code by (I think) Bruce Perens <bruce@pixar.com>.
8 * 8 *
9 * This program is free software; you can redistribute it and/or modify 9 * This program is free software; you can redistribute it and/or modify
@@ -31,7 +31,7 @@
31#include "busybox.h" 31#include "busybox.h"
32 32
33extern const char mtab_file[]; /* Defined in utility.c */ 33extern const char mtab_file[]; /* Defined in utility.c */
34#ifdef BB_FEATURE_HUMAN_READABLE 34#ifdef CONFIG_FEATURE_HUMAN_READABLE
35static unsigned long df_disp_hr = KILOBYTE; 35static unsigned long df_disp_hr = KILOBYTE;
36#endif 36#endif
37 37
@@ -61,7 +61,7 @@ static int do_df(char *device, const char *mount_point)
61 if(device==NULL) 61 if(device==NULL)
62 return FALSE; 62 return FALSE;
63 } 63 }
64#ifdef BB_FEATURE_HUMAN_READABLE 64#ifdef CONFIG_FEATURE_HUMAN_READABLE
65 printf("%-20s %9s ", device, 65 printf("%-20s %9s ", device,
66 make_human_readable_str(s.f_blocks, s.f_bsize, df_disp_hr)); 66 make_human_readable_str(s.f_blocks, s.f_bsize, df_disp_hr));
67 67
@@ -92,13 +92,13 @@ extern int df_main(int argc, char **argv)
92 char disp_units_hdr[80] = "1k-blocks"; /* default display is kilobytes */ 92 char disp_units_hdr[80] = "1k-blocks"; /* default display is kilobytes */
93 93
94 while ((opt = getopt(argc, argv, "k" 94 while ((opt = getopt(argc, argv, "k"
95#ifdef BB_FEATURE_HUMAN_READABLE 95#ifdef CONFIG_FEATURE_HUMAN_READABLE
96 "hm" 96 "hm"
97#endif 97#endif
98)) > 0) 98)) > 0)
99 { 99 {
100 switch (opt) { 100 switch (opt) {
101#ifdef BB_FEATURE_HUMAN_READABLE 101#ifdef CONFIG_FEATURE_HUMAN_READABLE
102 case 'h': 102 case 'h':
103 df_disp_hr = 0; 103 df_disp_hr = 0;
104 strcpy(disp_units_hdr, " Size"); 104 strcpy(disp_units_hdr, " Size");