This fixes lash so it handles environment variable expansion, regardless
[oweals/busybox.git] / df.c
diff --git a/df.c b/df.c
index 8b6726b75bbc8d3a264db9ea11784d5d8ef5a565..ebee4d607dc4f166eaa2bc6957c8cc6128a1305c 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>
+#include "busybox.h"
 
 extern const char mtab_file[]; /* Defined in utility.c */
 #ifdef BB_FEATURE_HUMAN_READABLE
@@ -85,7 +85,7 @@ extern int df_main(int argc, char **argv)
        int opt = 0;
        int i = 0;
 
-       while ((opt = getopt(argc, argv, "?"
+       while ((opt = getopt(argc, argv, 
 #ifdef BB_FEATURE_HUMAN_READABLE
        "hm"
 #endif
@@ -100,7 +100,8 @@ extern int df_main(int argc, char **argv)
 #else
                        case 'k': break;
 #endif
-                       case '?': goto print_df_usage; break;
+                       default:
+                                         show_usage();
                }
        }
 
@@ -141,10 +142,6 @@ extern int df_main(int argc, char **argv)
        }
 
        return status;
-
-print_df_usage:
-    show_usage();
-    return(FALSE);
 }
 
 /*