* prof_get.c (conf_yes, conf_no): Entries now point to const.
authorKen Raeburn <raeburn@mit.edu>
Sat, 7 Dec 2002 01:55:47 +0000 (01:55 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sat, 7 Dec 2002 01:55:47 +0000 (01:55 +0000)
(profile_parse_boolean): Updated type of 'p' correspondingly.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15036 dc483132-0cff-0310-8789-dd5450dbe970

src/util/profile/ChangeLog
src/util/profile/prof_get.c

index ff267776cbf29a6c2c2abc457302db3d4d424a0b..82463e3109c326c5da4ddab10527b78c4e56daa1 100644 (file)
@@ -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>
 
index 281066e4399afbf51c23b9e7174b4daefc526e7b..d678a25f27c5dc191e06521b714595065cbc5538 100644 (file)
@@ -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;