summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-11-15 14:51:11 -0500
committerStephen Gallagher <sgallagh@redhat.com>2010-11-15 15:52:10 -0500
commitf8a60e728780a8230ed4fa9c5350fa94534f0543 (patch)
treeda144bb4a008a2e4d52b6408823752643f6eb875 /src
parent4230a43c97e13c83ce4e230d45c4f0f11b37fe4e (diff)
downloadsssd-f8a60e728780a8230ed4fa9c5350fa94534f0543.tar.gz
sssd-f8a60e728780a8230ed4fa9c5350fa94534f0543.tar.bz2
sssd-f8a60e728780a8230ed4fa9c5350fa94534f0543.zip
Fix const cast issue with sysdb_attrs_users_from_str_list
Diffstat (limited to 'src')
-rw-r--r--src/db/sysdb.c2
-rw-r--r--src/db/sysdb.h2
-rw-r--r--src/providers/proxy/proxy_id.c18
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;
}