From 7f7e58935b965845c2413a8b948865643d32d7e5 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 11 May 2001 12:59:50 +0000 Subject: 14314: writing const variable under cygwin --- ChangeLog | 2 ++ Src/Modules/stat.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 47173fb23..5651740a8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2001-05-11 Peter Stephenson + * 14314: Src/Modules/stat.c: writing const variable under cygwin. + * 14313: Test/E01options.ztst, Test/ztst.zsh: new options tests. 2001-05-10 Wayne Davison diff --git a/Src/Modules/stat.c b/Src/Modules/stat.c index 053d0ace0..335f7271e 100644 --- a/Src/Modules/stat.c +++ b/Src/Modules/stat.c @@ -54,15 +54,15 @@ statmodeprint(mode_t mode, char *outbuf, int flags) } if (flags & STF_STRING) { static const char *modes = "?rwxrwxrwx"; - static const mode_t mflags[9] = { #ifdef __CYGWIN__ - 0 + static mode_t mflags[9] = { 0 }; #else + static const mode_t mflags[9] = { S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH -#endif }; +#endif const mode_t *mfp = mflags; char pm[11]; int i; -- cgit 1.4.1