* prof_get.c (conf_yes, conf_no): Now const.
authorKen Raeburn <raeburn@mit.edu>
Wed, 8 May 2002 19:45:12 +0000 (19:45 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 8 May 2002 19:45:12 +0000 (19:45 +0000)
(profile_parse_boolean): Local variable P points to const.

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

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

index 4c33e448e9cc584ac2e10ccd0ae6c6cc35d3f558..660e1344cc532974ef758506b3e383aa3d62ef47 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-08  Ken Raeburn  <raeburn@mit.edu>
+
+       * prof_get.c (conf_yes, conf_no): Now const.
+       (profile_parse_boolean): Local variable P points to const.
+
 2002-02-19  Ken Raeburn  <raeburn@mit.edu>
 
        * Makefile.in (LIBMINOR): Bump, due to error table changes.
index e12010cb208467ba6ab16287413bf4c019c18e71..cd9d6b5c0c3d9f2aac53173294b2df26049e7742 100644 (file)
@@ -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;