s4:dsdb: add some const to {samdb_result,dsdb}_effective_badPwdCount()
authorStefan Metzmacher <metze@samba.org>
Fri, 29 Apr 2016 11:20:12 +0000 (13:20 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 30 Jun 2016 01:30:24 +0000 (03:30 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/common/util.c

index 5be340a2525c6f39daf462a1a8aa1a444bdf428f..69f0f631de852cc8ecc5b67c51036a5c7011235b 100644 (file)
@@ -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);