1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

net: Fix Coverity ID 1509022 Use of 32-bit time_t

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
Volker Lendecke 2024-11-21 18:22:27 +01:00 committed by Martin Schwenke
parent 6421b82c1d
commit 9558cb6ef6

View File

@ -295,8 +295,8 @@ static int account_set_lockduration(struct net_context *c,
} }
unix_to_nt_time_abs(&i12->lockout_duration, atoi(argv[0])); unix_to_nt_time_abs(&i12->lockout_duration, atoi(argv[0]));
d_printf(_("Setting lockout duration to %d seconds\n"), d_printf(_("Setting lockout duration to %" PRIi64 " seconds\n"),
(int)nt_time_to_unix_abs(&i12->lockout_duration)); (int64_t)nt_time_to_unix_abs(&i12->lockout_duration));
return 12; return 12;
} }