Changed some #define strings to static const char [] variables. Tested ls

after changing, it worked.
This commit is contained in:
Mark Whitley 2000-12-05 20:10:27 +00:00
parent deb9d4d765
commit 26a3adb244

View File

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