Gratuitously changed the file "busybox.defs.h" to the more
[oweals/busybox.git] / mkfifo.c
index 46b1343cd33c2f46c58825e9b3caad75b9a4bce8..5d4126ac07008a824c9c44d583e764207c9f1086 100644 (file)
--- a/mkfifo.c
+++ b/mkfifo.c
 #include "internal.h"
 #include <stdio.h>
 #include <sys/types.h>
-#include <sys/stat.h>
 #include <errno.h>
 
-static const char mkfifo_usage[] = "mkfifo [OPTIONS] name\n"
-#ifndef BB_FEATURE_TRIVIAL_HELP
-       "\nCreates a named pipe (identical to 'mknod name p')\n\n"
-       "Options:\n"
-       "\t-m\tcreate the pipe using the specified mode (default a=rw)\n"
-#endif
-       ;
-
 extern int mkfifo_main(int argc, char **argv)
 {
        char *thisarg;
@@ -65,7 +56,6 @@ extern int mkfifo_main(int argc, char **argv)
        if (mkfifo(*argv, mode) < 0) {
                perror("mkfifo");
                exit(255);
-       } else {
-               exit(TRUE);
        }
+       return(TRUE);
 }