ash: fix warning about _GNU_SOURCE being redefined, fix typo in comment.
authorDenis Vlasenko <vda.linux@googlemail.com>
Tue, 12 Feb 2008 07:40:29 +0000 (07:40 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Tue, 12 Feb 2008 07:40:29 +0000 (07:40 -0000)
shell/ash.c

index a877b5bab49604ec032aecce721f651ef285ab4b..0634f1868589b7eacb3fb5bad88bce7ef793f317 100644 (file)
 #endif
 
 #if DEBUG
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
 #endif
+#endif
 #include "busybox.h" /* for applet_names */
 #include <paths.h>
 #include <setjmp.h>
@@ -6500,7 +6502,7 @@ struct builtincmd {
        /* unsigned flags; */
 };
 #define IS_BUILTIN_SPECIAL(b) ((b)->name[0] & 1)
-/* "regular" bltins always take precedence over commands,
+/* "regular" builtins always take precedence over commands,
  * regardless of PATH=....%builtin... position */
 #define IS_BUILTIN_REGULAR(b) ((b)->name[0] & 2)
 #define IS_BUILTIN_ASSIGN(b)  ((b)->name[0] & 4)