summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2002-12-07 01:55:47 +0000
committerKen Raeburn <raeburn@mit.edu>2002-12-07 01:55:47 +0000
commitaae8df84aade9b538efc6ac2db392b884cec9d1a (patch)
treeb54fe7d841e9c469045784e1f94282e500f4f78d /src
parentfc4409a879ad6c7253bb3044276a7e6c721ed077 (diff)
downloadkrb5-aae8df84aade9b538efc6ac2db392b884cec9d1a.tar.gz
krb5-aae8df84aade9b538efc6ac2db392b884cec9d1a.tar.xz
krb5-aae8df84aade9b538efc6ac2db392b884cec9d1a.zip
* 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
Diffstat (limited to 'src')
-rw-r--r--src/util/profile/ChangeLog8
-rw-r--r--src/util/profile/prof_get.c6
2 files changed, 10 insertions, 4 deletions
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 <raeburn@mit.edu>
+
+ * 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 <hartmans@mit.edu>
* Makefile.in: Support install-headers
2002-10-03 Sam Hartman <hartmans@mit.edu>
- * 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 <raeburn@mit.edu>
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;