"formated" -> "formatted" throughout the code base.
[oweals/busybox.git] / miscutils / makedevs.c
index 24d07ebe0f3f253fd8b35395aee346bf306dda9e..776bcaa8d9a7a82e4604a000893b288a222d4abf 100644 (file)
@@ -7,6 +7,7 @@
  * known bugs: can't deal with alpha ranges
  */
 
+#include "busybox.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -16,7 +17,6 @@
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/sysmacros.h>     /* major() and minor() */
-#include "busybox.h"
 
 #ifdef CONFIG_FEATURE_MAKEDEVS_LEAF
 int makedevs_main(int argc, char **argv)
@@ -232,7 +232,7 @@ loop:
        }
        fclose(table);
 
-       return 0;
+       return ret;
 }
 
 #else