diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2010-11-15 14:44:08 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-11-15 15:52:10 -0500 |
commit | 4230a43c97e13c83ce4e230d45c4f0f11b37fe4e (patch) | |
tree | 1d3324892e4c7f9a972f23b834a74314b064eb1b | |
parent | 3fa7380908997eda5e45c5f4d6b512a954d3bc3c (diff) | |
download | sssd-4230a43c97e13c83ce4e230d45c4f0f11b37fe4e.tar.gz sssd-4230a43c97e13c83ce4e230d45c4f0f11b37fe4e.tar.bz2 sssd-4230a43c97e13c83ce4e230d45c4f0f11b37fe4e.zip |
Fix const cast warning in build_attrs_from_map
-rw-r--r-- | src/providers/ldap/sdap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/providers/ldap/sdap.c b/src/providers/ldap/sdap.c index 047562f7..1a065cc8 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; } |