From e20cb3598f6d851bd2593603e1916eaba37fb936 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 19 Jul 2001 12:24:31 +0000 Subject: [PATCH] * 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13615 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/profile/ChangeLog | 13 +++++++++++++ src/util/profile/prof_get.c | 2 +- src/util/profile/prof_int.h | 2 +- src/util/profile/prof_tree.c | 6 +++--- src/util/profile/profile.hin | 2 +- 5 files changed, 19 insertions(+), 6 deletions(-) diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog index d51754303..3859a7870 100644 --- a/src/util/profile/ChangeLog +++ b/src/util/profile/ChangeLog @@ -1,3 +1,16 @@ +2001-07-19 Ken Raeburn + + * 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 * prof_int.h: Provide prototypes for profile_ser_size, diff --git a/src/util/profile/prof_get.c b/src/util/profile/prof_get.c index a013a88a5..042eac61d 100644 --- a/src/util/profile/prof_get.c +++ b/src/util/profile/prof_get.c @@ -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; diff --git a/src/util/profile/prof_int.h b/src/util/profile/prof_int.h index f030c2952..0ee1f65f1 100644 --- a/src/util/profile/prof_int.h +++ b/src/util/profile/prof_int.h @@ -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 diff --git a/src/util/profile/prof_tree.c b/src/util/profile/prof_tree.c index 51cad1761..66fd4af82 100644 --- a/src/util/profile/prof_tree.c +++ b/src/util/profile/prof_tree.c @@ -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; diff --git a/src/util/profile/profile.hin b/src/util/profile/profile.hin index 60387f08e..ca6315cf8 100644 --- a/src/util/profile/profile.hin +++ b/src/util/profile/profile.hin @@ -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)); -- 2.26.2