From: Ken Raeburn Date: Wed, 8 May 2002 19:45:12 +0000 (+0000) Subject: * prof_get.c (conf_yes, conf_no): Now const. X-Git-Tag: krb5-1.3-alpha1~753 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=35ed60b01b3ca34589c90659f119173ca4af21de;p=krb5.git * 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 --- diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog index 4c33e448e..660e1344c 100644 --- a/src/util/profile/ChangeLog +++ b/src/util/profile/ChangeLog @@ -1,3 +1,8 @@ +2002-05-08 Ken Raeburn + + * prof_get.c (conf_yes, conf_no): Now const. + (profile_parse_boolean): Local variable P points to const. + 2002-02-19 Ken Raeburn * 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 e12010cb2..cd9d6b5c0 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;