From 4230a43c97e13c83ce4e230d45c4f0f11b37fe4e Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Mon, 15 Nov 2010 14:44:08 -0500 Subject: Fix const cast warning in build_attrs_from_map --- src/providers/ldap/sdap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/providers/ldap/sdap.c') 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; } -- cgit