summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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;