diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2002-05-08 19:45:12 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2002-05-08 19:45:12 +0000 |
| commit | 35ed60b01b3ca34589c90659f119173ca4af21de (patch) | |
| tree | 8272da0db1689138183168792441046e79c557ac /src | |
| parent | 38f60cf4e72f1d4575de2dc5ae078ab5215b8645 (diff) | |
| download | krb5-35ed60b01b3ca34589c90659f119173ca4af21de.tar.gz krb5-35ed60b01b3ca34589c90659f119173ca4af21de.tar.xz krb5-35ed60b01b3ca34589c90659f119173ca4af21de.zip | |
* prof_get.c (conf_yes, conf_no): Now const.
(profile_parse_boolean): Local variable P points to const.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14435 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
| -rw-r--r-- | src/util/profile/ChangeLog | 5 | ||||
| -rw-r--r-- | src/util/profile/prof_get.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog index 4c33e448e9..660e1344cc 100644 --- a/src/util/profile/ChangeLog +++ b/src/util/profile/ChangeLog @@ -1,3 +1,8 @@ +2002-05-08 Ken Raeburn <raeburn@mit.edu> + + * prof_get.c (conf_yes, conf_no): Now const. + (profile_parse_boolean): Local variable P points to const. + 2002-02-19 Ken Raeburn <raeburn@mit.edu> * Makefile.in (LIBMINOR): Bump, due to error table changes. diff --git a/src/util/profile/prof_get.c b/src/util/profile/prof_get.c index e12010cb20..cd9d6b5c0c 100644 --- a/src/util/profile/prof_get.c +++ b/src/util/profile/prof_get.c @@ -283,12 +283,12 @@ profile_get_integer(profile, name, subname, subsubname, return 0; } -static char *conf_yes[] = { +static char *const conf_yes[] = { "y", "yes", "true", "t", "1", "on", 0, }; -static char *conf_no[] = { +static char *const conf_no[] = { "n", "no", "false", "nil", "0", "off", 0, }; @@ -298,7 +298,7 @@ profile_parse_boolean(s, ret_boolean) char *s; int* ret_boolean; { - char **p; + char *const *p; if (ret_boolean == NULL) return PROF_EINVAL; |
