diff options
Diffstat (limited to 'src/providers')
-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; } |