From: Stefan Metzmacher Date: Tue, 11 Feb 2025 15:42:22 +0000 (+0100) Subject: s3:tldap: add some const to 'const char * const *attrs' X-Git-Tag: tevent-0.17.0~802 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=98d887ce9493ff4d09e0d17bb02f7ab74fa39792;p=thirdparty%2Fsamba.git s3:tldap: add some const to 'const char * const *attrs' Signed-off-by: Stefan Metzmacher Reviewed-by: Volker Lendecke Autobuild-User(master): Volker Lendecke Autobuild-Date(master): Thu Feb 13 13:14:02 UTC 2025 on atb-devel-224 --- diff --git a/source3/include/tldap.h b/source3/include/tldap.h index 0a05da83fdf..c4275cf3985 100644 --- a/source3/include/tldap.h +++ b/source3/include/tldap.h @@ -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, diff --git a/source3/lib/tldap.c b/source3/lib/tldap.c index ef6937a85ef..09006f873f0 100644 --- a/source3/lib/tldap.c +++ b/source3/lib/tldap.c @@ -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,