diff options
author | Steve Bennett <steveb@workware.net.au> | 2010-10-18 11:45:33 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2010-10-20 10:30:34 +1000 |
commit | 0344a6bee50e0fced3f3c347bc61a137eabe6bb7 (patch) | |
tree | 837c49e0e74e86d3a2cda69ba8f780d0de082e18 | |
parent | c00426df647271ce753acf97103086d73b8fbb83 (diff) | |
download | jimtcl-0344a6bee50e0fced3f3c347bc61a137eabe6bb7.zip jimtcl-0344a6bee50e0fced3f3c347bc61a137eabe6bb7.tar.gz jimtcl-0344a6bee50e0fced3f3c347bc61a137eabe6bb7.tar.bz2 |
Mark some more static data as const
Signed-off-by: Steve Bennett <steveb@workware.net.au>
-rw-r--r-- | jim-regexp.c | 4 | ||||
-rw-r--r-- | jim-syslog.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/jim-regexp.c b/jim-regexp.c index 1ca27d7..8c9b934 100644 --- a/jim-regexp.c +++ b/jim-regexp.c @@ -127,7 +127,7 @@ int Jim_RegexpCmd(Jim_Interp *interp, int argc, Jim_Obj *const *argv) enum { OPT_INDICES, OPT_NOCASE, OPT_LINE, OPT_ALL, OPT_INLINE, OPT_START, OPT_END }; - static const char const *options[] = { + static const char * const options[] = { "-indices", "-nocase", "-line", "-all", "-inline", "-start", "--", NULL }; @@ -356,7 +356,7 @@ int Jim_RegsubCmd(Jim_Interp *interp, int argc, Jim_Obj *const *argv) enum { OPT_NOCASE, OPT_LINE, OPT_ALL, OPT_START, OPT_END }; - static const char const *options[] = { + static const char * const options[] = { "-nocase", "-line", "-all", "-start", "--", NULL }; diff --git a/jim-syslog.c b/jim-syslog.c index a128e63..9b35d61 100644 --- a/jim-syslog.c +++ b/jim-syslog.c @@ -22,7 +22,7 @@ typedef struct # define LOG_AUTHPRIV LOG_AUTH #endif -static const char *facilities[] = { +static const char * const facilities[] = { [LOG_AUTHPRIV] = "authpriv", [LOG_CRON] = "cron", [LOG_DAEMON] = "daemon", @@ -43,7 +43,7 @@ static const char *facilities[] = { [LOG_LOCAL7] = "local7", }; -static const char *priorities[] = { +static const char * const priorities[] = { [LOG_EMERG] = "emerg", [LOG_ALERT] = "alert", [LOG_CRIT] = "crit", |