Make cin be static
[oweals/busybox.git] / mknod.c
diff --git a/mknod.c b/mknod.c
index b51c8f3e3f66b4a511a8de2e7f99f405113703a6..4d8c598ead16c7eeaf5cbcf7792f5fe459ba538e 100644 (file)
--- a/mknod.c
+++ b/mknod.c
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <errno.h>
 #include <sys/types.h>
-#include <sys/stat.h>
 #include <fcntl.h>
 #include <unistd.h>
 
@@ -85,7 +84,7 @@ int mknod_main(int argc, char **argv)
        mode |= perm;
 
        if (mknod(argv[0], mode, dev) != 0)
-               fatalError("%s: %s\n", argv[0], strerror(errno));
-       return (TRUE);
+               perror_msg_and_die("%s", argv[0]);
+       return EXIT_SUCCESS;
 }