summaryrefslogtreecommitdiffstats
path: root/src/db
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/db
parent4230a43c97e13c83ce4e230d45c4f0f11b37fe4e (diff)
downloadsssd-f8a60e728780a8230ed4fa9c5350fa94534f0543.tar.gz
sssd-f8a60e728780a8230ed4fa9c5350fa94534f0543.tar.xz
sssd-f8a60e728780a8230ed4fa9c5350fa94534f0543.zip
Fix const cast issue with sysdb_attrs_users_from_str_list
Diffstat (limited to 'src/db')
-rw-r--r--src/db/sysdb.c2
-rw-r--r--src/db/sysdb.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/db/sysdb.c b/src/db/sysdb.c
index ab6377470..ace31a46c 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 f93f34e62..ed100b699 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,