Skip to content

Commit 071d0fc

Browse files
committed
Rename utimensat's flags parameter to flags.
This makes it more consistent with other similar functions.
1 parent c668d7e commit 071d0fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

c-scape/src/fs/utime.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ unsafe extern "C" fn utimensat(
5656
fd: c_int,
5757
path: *const c_char,
5858
times: *const libc::timespec,
59-
flag: c_int,
59+
flags: c_int,
6060
) -> c_int {
61-
libc!(libc::utimensat(fd, path, times, flag));
61+
libc!(libc::utimensat(fd, path, times, flags));
6262

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

6666
match convert_res(rustix::fs::utimensat(
6767
BorrowedFd::borrow_raw(fd),

0 commit comments

Comments
 (0)