From: Ken Raeburn Date: Sat, 7 Dec 2002 01:55:47 +0000 (+0000) Subject: * prof_get.c (conf_yes, conf_no): Entries now point to const. X-Git-Tag: krb5-1.3-alpha1~238 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=aae8df84aade9b538efc6ac2db392b884cec9d1a;p=krb5.git * prof_get.c (conf_yes, conf_no): Entries now point to const. (profile_parse_boolean): Updated type of 'p' correspondingly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15036 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog index ff267776c..82463e310 100644 --- a/src/util/profile/ChangeLog +++ b/src/util/profile/ChangeLog @@ -1,10 +1,16 @@ +2002-12-06 Ken Raeburn + + * prof_get.c (conf_yes, conf_no): Entries now point to const. + (profile_parse_boolean): Updated type of 'p' correspondingly. + 2002-10-07 Sam Hartman * Makefile.in: Support install-headers 2002-10-03 Sam Hartman - * Makefile.in : Move test_* from all to check targets. so that com_err is not needed on mac. + * Makefile.in : Move test_* from all to check targets. so that + com_err is not needed on mac. 2002-09-10 Ken Raeburn diff --git a/src/util/profile/prof_get.c b/src/util/profile/prof_get.c index 281066e43..d678a25f2 100644 --- a/src/util/profile/prof_get.c +++ b/src/util/profile/prof_get.c @@ -291,12 +291,12 @@ profile_get_integer(profile, name, subname, subsubname, return 0; } -static char *const conf_yes[] = { +static const char *const conf_yes[] = { "y", "yes", "true", "t", "1", "on", 0, }; -static char *const conf_no[] = { +static const char *const conf_no[] = { "n", "no", "false", "nil", "0", "off", 0, }; @@ -306,7 +306,7 @@ profile_parse_boolean(s, ret_boolean) char *s; int* ret_boolean; { - char *const *p; + const char *const *p; if (ret_boolean == NULL) return PROF_EINVAL;