summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-02-13 11:37:15 +0100
committerStefan Metzmacher <metze@samba.org>2009-02-13 13:44:36 +0100
commit3c9ad421fb03c70f49ec60666fce592e122d5616 (patch)
tree46c101c2d4f5883d28554f57c35099da98f3326d /source4
parent66b2604ef185228bb2ec5b5b0983ea39b55cd17c (diff)
downloadsamba-3c9ad421fb03c70f49ec60666fce592e122d5616.tar.gz
samba-3c9ad421fb03c70f49ec60666fce592e122d5616.tar.bz2
samba-3c9ad421fb03c70f49ec60666fce592e122d5616.zip
s4:libcli/ldap: use const char * const *attributes as in all other places
metze
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/ldap/ldap.h2
-rw-r--r--source4/libcli/ldap/ldap_ildap.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/libcli/ldap/ldap.h b/source4/libcli/ldap/ldap.h
index abb4617c48..3d99d6f47d 100644
--- a/source4/libcli/ldap/ldap.h
+++ b/source4/libcli/ldap/ldap.h
@@ -106,7 +106,7 @@ struct ldap_SearchRequest {
bool attributesonly;
struct ldb_parse_tree *tree;
int num_attributes;
- const char **attributes;
+ const char * const *attributes;
};
struct ldap_SearchResEntry {
diff --git a/source4/libcli/ldap/ldap_ildap.c b/source4/libcli/ldap/ldap_ildap.c
index 8f21af0690..f059e3882a 100644
--- a/source4/libcli/ldap/ldap_ildap.c
+++ b/source4/libcli/ldap/ldap_ildap.c
@@ -69,7 +69,7 @@ _PUBLIC_ NTSTATUS ildap_search_bytree(struct ldap_connection *conn, const char *
msg->r.SearchRequest.attributesonly = attributesonly;
msg->r.SearchRequest.tree = tree;
msg->r.SearchRequest.num_attributes = n;
- msg->r.SearchRequest.attributes = discard_const(attrs);
+ msg->r.SearchRequest.attributes = attrs;
msg->controls = control_req;
req = ldap_request_send(conn, msg);