]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
dsdb: Align integer types
authorVolker Lendecke <vl@samba.org>
Sun, 19 Jan 2020 11:29:39 +0000 (12:29 +0100)
committerJeremy Allison <jra@samba.org>
Sun, 19 Jan 2020 18:29:39 +0000 (18:29 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/dsdb/common/util.c

index f1b28129c385e6ea3f78804e9d9ba24cde9d5819..4050ace40c1c62f9a4641f98c78fc216fbfbd1fd 100644 (file)
@@ -5439,7 +5439,8 @@ NTSTATUS dsdb_update_bad_pwd_count(TALLOC_CTX *mem_ctx,
                                   struct ldb_message *pso_msg,
                                   struct ldb_message **_mod_msg)
 {
-       int i, ret, badPwdCount;
+       int ret, badPwdCount;
+       unsigned int i;
        int64_t lockoutThreshold, lockOutObservationWindow;
        struct dom_sid *sid;
        struct timeval tv_now = timeval_current();
@@ -5537,7 +5538,8 @@ int dsdb_user_obj_set_defaults(struct ldb_context *ldb,
                               struct ldb_message *usr_obj,
                               struct ldb_request *req)
 {
-       int i, ret;
+       size_t i;
+       int ret;
        const struct attribute_values {
                const char *name;
                const char *value;