From: Stefan Metzmacher Date: Fri, 29 Apr 2016 11:20:12 +0000 (+0200) Subject: s4:dsdb: add some const to {samdb_result,dsdb}_effective_badPwdCount() X-Git-Tag: tdb-1.3.10~619 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a35a5e90223604aaa15bd14b42a67f39dd34e047;p=thirdparty%2Fsamba.git s4:dsdb: add some const to {samdb_result,dsdb}_effective_badPwdCount() Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- 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);