bug#1113: [BusyBox] bug#1113: BusyBox] bug#1113: df reports 0-0-0 for MSDOS (FAT) volumes

Mark Whitley markw at lineo.com
Fri Mar 2 18:13:40 UTC 2001


On Fri, Mar 02, 2001 at 11:50:00AM -0600, David Douthitt wrote:
> 
> I confused the patches.  The lines should read thus after patching:
> 
> #ifdef BB_FEATURE_HUMAN_READABLE
> const char *format(unsigned long val, unsigned long hr);
> #endif
> #define KILOBYTE 1024.0
> #define MEGABYTE (KILOBYTE*1024.0)
> #define GIGABYTE (MEGABYTE*1024.0)
> 
> #ifdef BB_FEATURE_BUFFERS_GO_ON_STACK
> #define RESERVE_BB_BUFFER(buffer,len)           char buffer[len]
> 
> Note that the values are floats, and are OUTSIDE the endif.  This is
> basically my two patches combined correctly; my patch that I posted
> didn't take this into account.

David, I edited the source to busybox.h to read as you listed above. I
compiled and I still get:

df.c: In function `df':
df.c:66: case label does not reduce to an integer constant
df.c:70: case label does not reduce to an integer constant
df.c:67: warning: unreachable code at beginning of switch statement
make: *** [df.o] Error 1

I think we're gonna have to edit the code in df.c to cast these values.


Mark Whitley
markw at lineo.com






More information about the busybox mailing list