summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-11-15 14:44:08 -0500
committerStephen Gallagher <sgallagh@redhat.com>2010-11-15 15:52:10 -0500
commit4230a43c97e13c83ce4e230d45c4f0f11b37fe4e (patch)
tree1d3324892e4c7f9a972f23b834a74314b064eb1b /src/providers/ldap
parent3fa7380908997eda5e45c5f4d6b512a954d3bc3c (diff)
downloadsssd-4230a43c97e13c83ce4e230d45c4f0f11b37fe4e.tar.gz
sssd-4230a43c97e13c83ce4e230d45c4f0f11b37fe4e.tar.xz
sssd-4230a43c97e13c83ce4e230d45c4f0f11b37fe4e.zip
Fix const cast warning in build_attrs_from_map
Diffstat (limited to 'src/providers/ldap')
-rw-r--r--src/providers/ldap/sdap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/providers/ldap/sdap.c b/src/providers/ldap/sdap.c
index 047562f78..1a065cc80 100644
--- a/src/providers/ldap/sdap.c
+++ b/src/providers/ldap/sdap.c
@@ -530,10 +530,10 @@ int build_attrs_from_map(TALLOC_CTX *memctx,
struct sdap_attr_map *map,
size_t size, const char ***_attrs)
{
- char **attrs;
+ const char **attrs;
int i, j;
- attrs = talloc_array(memctx, char *, size + 1);
+ attrs = talloc_array(memctx, const char *, size + 1);
if (!attrs) return ENOMEM;
/* first attribute is "objectclass" not the specifc one */
@@ -549,7 +549,7 @@ int build_attrs_from_map(TALLOC_CTX *memctx,
}
attrs[j] = NULL;
- *_attrs = (const char **)attrs;
+ *_attrs = attrs;
return EOK;
}