From 656c06710cdc48bad6a8bfc40393b2cb44332d8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20D=C3=B8rum?= Date: Sat, 14 Aug 2021 00:15:22 +0200 Subject: [PATCH] cast timeval components to whatever type is appropriate for the host's libc --- src/purge.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/purge.rs b/src/purge.rs index 76e348e..060eadc 100644 --- a/src/purge.rs +++ b/src/purge.rs @@ -19,12 +19,12 @@ pub fn update_access(fd: unix::io::RawFd, mtime: time::SystemTime) let times: [libc::timeval; 2] = [ libc::timeval{ // atime - tv_sec: now, + tv_sec: now as _, tv_usec: 0, }, libc::timeval{ // mtime - tv_sec: mtime.as_secs() as i64, - tv_usec: mtime.subsec_micros() as i64, + tv_sec: mtime.as_secs() as _, + tv_usec: mtime.subsec_micros() as _, }, ]; -- 2.38.5