From 3b15a7a16b2f7ebd4b19af3378f2d2e67e82f8a6 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 25 May 2016 16:00:29 +0200 Subject: [PATCH] s4:dsdb/common: add some const to helper functions BUG: https://bugzilla.samba.org/show_bug.cgi?id=9654 Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source4/dsdb/common/util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index b27c73bb9be..4ad827a212a 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -597,7 +597,7 @@ NTSTATUS samdb_result_passwords_from_history(TALLOC_CTX *mem_ctx, NTSTATUS samdb_result_passwords_no_lockout(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx, - struct ldb_message *msg, + const struct ldb_message *msg, struct samr_Password **lm_pwd, struct samr_Password **nt_pwd) { @@ -637,7 +637,7 @@ NTSTATUS samdb_result_passwords_no_lockout(TALLOC_CTX *mem_ctx, NTSTATUS samdb_result_passwords(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx, - struct ldb_message *msg, + const struct ldb_message *msg, struct samr_Password **lm_pwd, struct samr_Password **nt_pwd) { @@ -691,7 +691,7 @@ struct samr_LogonHours samdb_result_logon_hours(TALLOC_CTX *mem_ctx, struct ldb_ (if not null) the attributes 'attr' be already included in msg */ -uint32_t samdb_result_acct_flags(struct ldb_message *msg, const char *attr) +uint32_t samdb_result_acct_flags(const struct ldb_message *msg, const char *attr) { uint32_t userAccountControl = ldb_msg_find_attr_as_uint(msg, "userAccountControl", 0); uint32_t attr_flags = 0; -- 2.47.2