From f8a60e728780a8230ed4fa9c5350fa94534f0543 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Mon, 15 Nov 2010 14:51:11 -0500 Subject: Fix const cast issue with sysdb_attrs_users_from_str_list --- src/db/sysdb.c | 2 +- src/db/sysdb.h | 2 +- src/providers/proxy/proxy_id.c | 18 +++++++++--------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/db/sysdb.c b/src/db/sysdb.c index ab637747..ace31a46 100644 --- a/src/db/sysdb.c +++ b/src/db/sysdb.c @@ -466,7 +466,7 @@ int sysdb_attrs_add_time_t(struct sysdb_attrs *attrs, int sysdb_attrs_users_from_str_list(struct sysdb_attrs *attrs, const char *attr_name, const char *domain, - const char **list) + const char *const *list) { struct ldb_message_element *el = NULL; struct ldb_val *vals; diff --git a/src/db/sysdb.h b/src/db/sysdb.h index f93f34e6..ed100b69 100644 --- a/src/db/sysdb.h +++ b/src/db/sysdb.h @@ -205,7 +205,7 @@ int sysdb_attrs_replace_name(struct sysdb_attrs *attrs, const char *oldname, int sysdb_attrs_users_from_str_list(struct sysdb_attrs *attrs, const char *attr_name, const char *domain, - const char **list); + const char *const *list); int sysdb_attrs_users_from_ldb_vals(struct sysdb_attrs *attrs, const char *attr_name, const char *domain, diff --git a/src/providers/proxy/proxy_id.c b/src/providers/proxy/proxy_id.c index 35fc9c49..71541386 100644 --- a/src/providers/proxy/proxy_id.c +++ b/src/providers/proxy/proxy_id.c @@ -502,9 +502,9 @@ again: ret = ENOMEM; goto done; } - ret = sysdb_attrs_users_from_str_list(members, SYSDB_MEMBER, - dom->name, - (const char **)grp->gr_mem); + ret = sysdb_attrs_users_from_str_list( + members, SYSDB_MEMBER, dom->name, + (const char *const *)grp->gr_mem); if (ret) { goto done; } @@ -653,9 +653,9 @@ again: ret = ENOMEM; goto done; } - ret = sysdb_attrs_users_from_str_list(members, SYSDB_MEMBER, - dom->name, - (const char **)grp->gr_mem); + ret = sysdb_attrs_users_from_str_list( + members, SYSDB_MEMBER, dom->name, + (const char *const *)grp->gr_mem); if (ret) { goto done; } @@ -808,9 +808,9 @@ again: ret = ENOMEM; goto done; } - ret = sysdb_attrs_users_from_str_list(members, SYSDB_MEMBER, - dom->name, - (const char **)grp->gr_mem); + ret = sysdb_attrs_users_from_str_list( + members, SYSDB_MEMBER, dom->name, + (const char *const *)grp->gr_mem); if (ret) { goto done; } -- cgit