Skip to content

Commit

Permalink
Rename utimensat's flags parameter to flags.
Browse files Browse the repository at this point in the history
This makes it more consistent with other similar functions.
  • Loading branch information
sunfishcode committed Dec 30, 2023
1 parent 4e707cd commit 573e4a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions c-scape/src/fs/utime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ unsafe extern "C" fn utimensat(
fd: c_int,
path: *const c_char,
times: *const libc::timespec,
flag: c_int,
flags: c_int,
) -> c_int {
libc!(libc::utimensat(fd, path, times, flag));
libc!(libc::utimensat(fd, path, times, flags));

let times = times.cast::<[libc::timespec; 2]>();
let flags = AtFlags::from_bits(flag as _).unwrap();
let flags = AtFlags::from_bits(flags as _).unwrap();

match convert_res(rustix::fs::utimensat(
BorrowedFd::borrow_raw(fd),
Expand Down

0 comments on commit 573e4a7

Please sign in to comment.