mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
ctdb-recoverd: CID 1509028 - Use of 32-bit time_t (Y2K38_SAFETY)
usecs is going to be passed as a uint32_t. There is no need to calculate it as a time_t. Signed-off-by: Martin Schwenke <mschwenke@ddn.com> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
862fc5770c
commit
2e2d81b92a
@ -619,7 +619,7 @@ static void ctdb_wait_handler(struct tevent_context *ev,
|
||||
static void ctdb_wait_timeout(struct ctdb_context *ctdb, double secs)
|
||||
{
|
||||
uint32_t timed_out = 0;
|
||||
time_t usecs = (secs - (time_t)secs) * 1000000;
|
||||
uint32_t usecs = (secs - (uint32_t)secs) * 1000000;
|
||||
tevent_add_timer(ctdb->ev, ctdb, timeval_current_ofs(secs, usecs),
|
||||
ctdb_wait_handler, &timed_out);
|
||||
while (!timed_out) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user