diff options
-rw-r--r-- | source/auth/auth_domain.c | 2 | ||||
-rw-r--r-- | source/passdb/secrets.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/auth/auth_domain.c b/source/auth/auth_domain.c index 6360d10b692..bedd318c3c3 100644 --- a/source/auth/auth_domain.c +++ b/source/auth/auth_domain.c @@ -403,7 +403,7 @@ static NTSTATUS check_trustdomain_security(const struct auth_context *auth_conte #if 0 /* Test if machine password is expired and need to be changed */ - if (time(NULL) > last_change_time + lp_machine_password_timeout()) + if (time(NULL) > last_change_time + (time_t)lp_machine_password_timeout()) { global_machine_password_needs_changing = True; } diff --git a/source/passdb/secrets.c b/source/passdb/secrets.c index db560b632fd..ee7c441fcfc 100644 --- a/source/passdb/secrets.c +++ b/source/passdb/secrets.c @@ -310,7 +310,7 @@ BOOL secrets_fetch_trust_account_password(const char *domain, uint8 ret_pwd[16], /* Test if machine password has expired and needs to be changed */ if (lp_machine_password_timeout()) { if (pass->mod_time > 0 && time(NULL) > (pass->mod_time + - lp_machine_password_timeout())) { + (time_t)lp_machine_password_timeout())) { global_machine_password_needs_changing = True; } } |