tackle some lints

This commit is contained in:
auronandace
2026-03-10 18:20:06 +00:00
parent 1bed273ad0
commit 8a2bfa2ed5
4 changed files with 13 additions and 9 deletions
+2 -2
View File
@@ -131,11 +131,11 @@ pub unsafe extern "C" fn utimes(path: *const c_char, times: *const timeval) -> c
[
timespec {
tv_sec: unsafe { (*times.offset(0)).tv_sec },
tv_nsec: (unsafe { (*times.offset(0)).tv_usec } as c_long) * 1000,
tv_nsec: c_long::from(unsafe { (*times.offset(0)).tv_usec }) * 1000,
},
timespec {
tv_sec: unsafe { (*times.offset(1)).tv_sec },
tv_nsec: (unsafe { (*times.offset(1)).tv_usec } as c_long) * 1000,
tv_nsec: c_long::from(unsafe { (*times.offset(1)).tv_usec }) * 1000,
},
]
.as_ptr()