* prof_tree.c (struct profile_iterator): Member "names" now points to const.
authorKen Raeburn <raeburn@mit.edu>
Thu, 19 Jul 2001 12:24:31 +0000 (12:24 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 19 Jul 2001 12:24:31 +0000 (12:24 +0000)
(profile_node_iterator_create): Argument "names" now points to const.
(profile_node_iterator): Local variable "cpp" now points to const.
* prof_int.h (profile_node_iterator_create): Decl updated.
* prof_get.c (profile_get_values): Argument "names" now points to const.
* profile.hin (profile_get_values): Decl updated.

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

src/util/profile/ChangeLog
src/util/profile/prof_get.c
src/util/profile/prof_int.h
src/util/profile/prof_tree.c
src/util/profile/profile.hin

index d51754303ea2745d8ca4fc7a7c84325ef2df7755..3859a787008e8b291a4c9acb51f05bc8887a88fa 100644 (file)
@@ -1,3 +1,16 @@
+2001-07-19  Ken Raeburn  <raeburn@mit.edu>
+
+       * prof_tree.c (struct profile_iterator): Member "names" now points
+       to const.
+       (profile_node_iterator_create): Argument "names" now points to
+       const.
+       (profile_node_iterator): Local variable "cpp" now points to
+       const.
+       * prof_int.h (profile_node_iterator_create): Decl updated.
+       * prof_get.c (profile_get_values): Argument "names" now points to
+       const.
+       * profile.hin (profile_get_values): Decl updated.
+
 2001-07-02  Ezra Peisach  <epeisach@mit.edu>
 
        * prof_int.h: Provide prototypes for profile_ser_size,
index a013a88a554b26bee6dbd08dce32e9bcbbaea12e..042eac61d007c52c1863267315f8e2deff1ccbf1 100644 (file)
@@ -139,7 +139,7 @@ KRB5_DLLIMP void KRB5_CALLCONV profile_free_list(list)
 KRB5_DLLIMP errcode_t KRB5_CALLCONV
 profile_get_values(profile, names, ret_values)
        profile_t       profile;
-       const char      **names;
+       const char      *const *names;
        char    ***ret_values;
 {
        errcode_t               retval;
index f030c295232905e4126730cebfd4ee4a0589e2a8..0ee1f65f1d4b74b995f368cea590c0694582bbfa 100644 (file)
@@ -151,7 +151,7 @@ errcode_t profile_find_node_name
                    char **ret_name));
 
 errcode_t profile_node_iterator_create
-       PROTOTYPE((profile_t profile, const char **names,
+       PROTOTYPE((profile_t profile, const char *const *names,
                   int flags, void **ret_iter));
 
 void profile_node_iterator_free
index 51cad17610b5e832d7d0899b067b35287526dc29..66fd4af822bd157e73a980ab739fd5929813677b 100644 (file)
@@ -387,7 +387,7 @@ struct profile_iterator {
        prf_magic_t             magic;
        profile_t               profile;
        int                     flags;
-       const char              **names;
+       const char              *const *names;
        const char              *name;
        prf_file_t              file;
        int                     file_serial;
@@ -398,7 +398,7 @@ struct profile_iterator {
 
 errcode_t profile_node_iterator_create(profile, names, flags, ret_iter)
        profile_t       profile;
-       const char      **names;
+       const char      *const *names;
        int             flags;
        void            **ret_iter;
 {
@@ -460,7 +460,7 @@ errcode_t profile_node_iterator(iter_p, ret_node, ret_name, ret_value)
 {
        struct profile_iterator         *iter = *iter_p;
        struct profile_node             *section, *p;
-       const char                      **cpp;
+       const char                      *const *cpp;
        errcode_t                       retval;
        int                             skip_num = 0;
 
index 60387f08edd5d4483c61d4bd3cbce19ffcb14ffd..ca6315cf83d9a2111796722a27ff6240637e1464 100644 (file)
@@ -81,7 +81,7 @@ KRB5_DLLIMP void KRB5_CALLCONV profile_release
        PROTOTYPE ((profile_t profile));
 
 KRB5_DLLIMP long KRB5_CALLCONV profile_get_values
-       PROTOTYPE ((profile_t profile, const char **names, char ***ret_values));
+       PROTOTYPE ((profile_t profile, const char *const *names, char ***ret_values));
 
 KRB5_DLLIMP void KRB5_CALLCONV profile_free_list
        PROTOTYPE ((char **list));