summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2001-07-19 12:24:31 +0000
committerKen Raeburn <raeburn@mit.edu>2001-07-19 12:24:31 +0000
commite20cb3598f6d851bd2593603e1916eaba37fb936 (patch)
tree9fe43569d573ac5cbd5473af451b6922faddb691 /src
parent3d547e9077e46b40dfdf3ddef53dabaa6823c31a (diff)
* 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
Diffstat (limited to 'src')
-rw-r--r--src/util/profile/ChangeLog13
-rw-r--r--src/util/profile/prof_get.c2
-rw-r--r--src/util/profile/prof_int.h2
-rw-r--r--src/util/profile/prof_tree.c6
-rw-r--r--src/util/profile/profile.hin2
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 <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,
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));