Wrap a table (bg set to black, width=80%) around the screenshot
[oweals/busybox.git] / df.c
diff --git a/df.c b/df.c
index aa04682a756ab853a6f6f2a9c6359b74da943bfe..7a24fedd05912da3585771fed881c74b7b63fb76 100644 (file)
--- a/df.c
+++ b/df.c
@@ -2,7 +2,7 @@
 /*
  * Mini df implementation for busybox
  *
- * Copyright (C) 1999,2000 by Lineo, inc.
+ * Copyright (C) 1999,2000,2001 by Lineo, inc.
  * Written by Erik Andersen <andersen@lineo.com>, <andersee@debian.org>
  * based on original code by (I think) Bruce Perens <bruce@pixar.com>.
  *
 
 #include "busybox.h"
 #include <stdio.h>
+#include <stdlib.h>
 #include <mntent.h>
 #include <sys/vfs.h>
+#include <getopt.h>
 
 extern const char mtab_file[]; /* Defined in utility.c */
 #ifdef BB_FEATURE_HUMAN_READABLE
@@ -46,7 +48,7 @@ static int df(char *device, const char *mountPoint)
        if (s.f_blocks > 0) {
                blocks_used = s.f_blocks - s.f_bfree;
                if(0 == blocks_used)
-                       blocs_percent_used = 0;
+                       blocks_percent_used = 0;
                else
                        blocks_percent_used = (long)
                          (blocks_used * 100.0 / (blocks_used + s.f_bavail) + 0.5);