Fix some formatting
[oweals/busybox.git] / df.c
diff --git a/df.c b/df.c
index aa04682a756ab853a6f6f2a9c6359b74da943bfe..0408f9f54c7f089e7d9243c8e174a0ae20e786a1 100644 (file)
--- a/df.c
+++ b/df.c
 
 #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);