s4:libcli/ldap: use const char * const *attributes as in all other places
authorStefan Metzmacher <metze@samba.org>
Fri, 13 Feb 2009 10:37:15 +0000 (11:37 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 13 Feb 2009 12:44:36 +0000 (13:44 +0100)
metze

source4/libcli/ldap/ldap.h
source4/libcli/ldap/ldap_ildap.c

index abb4617c485b43d91fa42c1903f08c4c2940607d..3d99d6f47d1d88556626e81d4a71786b01b0d327 100644 (file)
@@ -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 {
index 8f21af069009afa1a5866eb3c85c0a0fc1af47a0..f059e3882adc83d5eae2a8c66e34d9018886a81d 100644 (file)
@@ -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);