From a35a5e90223604aaa15bd14b42a67f39dd34e047 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 29 Apr 2016 13:20:12 +0200 Subject: [PATCH] s4:dsdb: add some const to {samdb_result,dsdb}_effective_badPwdCount() Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source4/dsdb/common/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index 5be340a2525..69f0f631de8 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -5054,7 +5054,7 @@ _PUBLIC_ char *NS_GUID_string(TALLOC_CTX *mem_ctx, const struct GUID *guid) * This also requires that the domain_msg have (if present): * - lockOutObservationWindow */ -static int dsdb_effective_badPwdCount(struct ldb_message *user_msg, +static int dsdb_effective_badPwdCount(const struct ldb_message *user_msg, int64_t lockOutObservationWindow, NTTIME now) { @@ -5079,7 +5079,7 @@ static int dsdb_effective_badPwdCount(struct ldb_message *user_msg, int samdb_result_effective_badPwdCount(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, struct ldb_dn *domain_dn, - struct ldb_message *user_msg) + const struct ldb_message *user_msg) { struct timeval tv_now = timeval_current(); NTTIME now = timeval_to_nttime(&tv_now); -- 2.11.4.GIT