]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:tldap: add some const to 'const char * const *attrs'
authorStefan Metzmacher <metze@samba.org>
Tue, 11 Feb 2025 15:42:22 +0000 (16:42 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 13 Feb 2025 13:14:02 +0000 (13:14 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Feb 13 13:14:02 UTC 2025 on atb-devel-224

source3/include/tldap.h
source3/lib/tldap.c

index 0a05da83fdf3d560488e97985d5727328fd695fe..c4275cf3985cbaa00e50a52ac395f68c8cc7c3b3 100644 (file)
@@ -177,7 +177,7 @@ struct tevent_req *tldap_search_send(TALLOC_CTX *mem_ctx,
                                     struct tldap_context *ld,
                                     const char *base, int scope,
                                     const char *filter,
-                                    const char **attrs,
+                                    const char * const *attrs,
                                     int num_attrs,
                                     int attrsonly,
                                     struct tldap_control *sctrls,
@@ -193,7 +193,7 @@ TLDAPRC tldap_search_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
 struct tevent_req *tldap_search_all_send(
        TALLOC_CTX *mem_ctx, struct tevent_context *ev,
        struct tldap_context *ld, const char *base, int scope,
-       const char *filter, const char **attrs, int num_attrs, int attrsonly,
+       const char *filter, const char * const *attrs, int num_attrs, int attrsonly,
        struct tldap_control *sctrls, int num_sctrls,
        struct tldap_control *cctrls, int num_cctrls,
        int timelimit, int sizelimit, int deref);
@@ -203,7 +203,7 @@ TLDAPRC tldap_search_all_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
 
 TLDAPRC tldap_search(struct tldap_context *ld,
                     const char *base, int scope, const char *filter,
-                    const char **attrs, int num_attrs, int attrsonly,
+                    const char * const *attrs, int num_attrs, int attrsonly,
                     struct tldap_control *sctrls, int num_sctrls,
                     struct tldap_control *cctrls, int num_cctrls,
                     int timelimit, int sizelimit, int deref,
index ef6937a85ef6d14886c71e835e00cfcc828e249b..09006f873f09d6a020806d879a0a849c19a25138 100644 (file)
@@ -1861,7 +1861,7 @@ struct tevent_req *tldap_search_send(TALLOC_CTX *mem_ctx,
                                     struct tldap_context *ld,
                                     const char *base, int scope,
                                     const char *filter,
-                                    const char **attrs,
+                                    const char * const *attrs,
                                     int num_attrs,
                                     int attrsonly,
                                     struct tldap_control *sctrls,
@@ -1988,7 +1988,7 @@ static void tldap_search_all_done(struct tevent_req *subreq);
 struct tevent_req *tldap_search_all_send(
        TALLOC_CTX *mem_ctx, struct tevent_context *ev,
        struct tldap_context *ld, const char *base, int scope,
-       const char *filter, const char **attrs, int num_attrs, int attrsonly,
+       const char *filter, const char * const *attrs, int num_attrs, int attrsonly,
        struct tldap_control *sctrls, int num_sctrls,
        struct tldap_control *cctrls, int num_cctrls,
        int timelimit, int sizelimit, int deref)
@@ -2072,7 +2072,7 @@ TLDAPRC tldap_search_all_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
 
 TLDAPRC tldap_search(struct tldap_context *ld,
                     const char *base, int scope, const char *filter,
-                    const char **attrs, int num_attrs, int attrsonly,
+                    const char * const *attrs, int num_attrs, int attrsonly,
                     struct tldap_control *sctrls, int num_sctrls,
                     struct tldap_control *cctrls, int num_cctrls,
                     int timelimit, int sizelimit, int deref,