test: recognize /path/to/[ case too
[oweals/busybox.git] / coreutils / mknod.c
index 7cc478f177e3cc6755137afd0af08d26578e0bfd..415ef55c167661b003c5676189bfbb2da705d427 100644 (file)
 
 #include <sys/sysmacros.h>  // For makedev
 
-#include "busybox.h"
+#include "libbb.h"
 #include "libcoreutils/coreutils.h"
 
 static const char modes_chars[] = { 'p', 'c', 'u', 'b', 0, 1, 1, 2 };
 static const mode_t modes_cubp[] = { S_IFIFO, S_IFCHR, S_IFBLK };
 
+int mknod_main(int argc, char **argv);
 int mknod_main(int argc, char **argv)
 {
        mode_t mode;
@@ -32,7 +33,7 @@ int mknod_main(int argc, char **argv)
 
                dev = 0;
                if ((*name != 'p') && ((argc -= 2) == 2)) {
-                       /* Autodetect what the system supports; thexe macros should
+                       /* Autodetect what the system supports; these macros should
                         * optimize out to two constants. */
                        dev = makedev(xatoul_range(argv[2], 0, major(UINT_MAX)),
                                      xatoul_range(argv[3], 0, minor(UINT_MAX)));