Changed some #define strings to static const char [] variables. Tested ls
authorMark Whitley <markw@lineo.com>
Tue, 5 Dec 2000 20:10:27 +0000 (20:10 -0000)
committerMark Whitley <markw@lineo.com>
Tue, 5 Dec 2000 20:10:27 +0000 (20:10 -0000)
after changing, it worked.

utility.c

index 52a2eb7..554ad1b 100644 (file)
--- a/utility.c
+++ b/utility.c
@@ -482,10 +482,10 @@ static const mode_t MBIT[] = {
        S_IROTH, S_IWOTH, S_IXOTH
 };
 
-#define MODE1  "rwxrwxrwx"
-#define MODE0  "---------"
-#define SMODE1 "..s..s..t"
-#define SMODE0 "..S..S..T"
+static const char MODE1[]  = "rwxrwxrwx";
+static const char MODE0[]  = "---------";
+static const char SMODE1[] = "..s..s..t";
+static const char SMODE0[] = "..S..S..T";
 
 /*
  * Return the standard ls-like mode string from a file mode.