@@ -29,7 +29,7 @@ unsafe fn _fcntl<FlockTy: Flock>(fd: c_int, cmd: c_int, mut args: VaList<'_>) ->
2929 }
3030 }
3131 libc:: F_SETFL => {
32- let flags = args. arg :: < c_int > ( ) ;
32+ let flags = args. next_arg :: < c_int > ( ) ;
3333 libc ! ( libc:: fcntl( fd, libc:: F_SETFL , flags) ) ;
3434 let fd = BorrowedFd :: borrow_raw ( fd) ;
3535 match convert_res ( rustix:: fs:: fcntl_setfl (
@@ -49,7 +49,7 @@ unsafe fn _fcntl<FlockTy: Flock>(fd: c_int, cmd: c_int, mut args: VaList<'_>) ->
4949 }
5050 }
5151 libc:: F_SETFD => {
52- let flags = args. arg :: < c_int > ( ) ;
52+ let flags = args. next_arg :: < c_int > ( ) ;
5353 libc ! ( libc:: fcntl( fd, libc:: F_SETFD , flags) ) ;
5454 let fd = BorrowedFd :: borrow_raw ( fd) ;
5555 match convert_res ( rustix:: io:: fcntl_setfd (
@@ -61,7 +61,7 @@ unsafe fn _fcntl<FlockTy: Flock>(fd: c_int, cmd: c_int, mut args: VaList<'_>) ->
6161 }
6262 }
6363 libc:: F_SETLK | libc:: F_SETLKW => {
64- let ptr = args. arg :: < * mut FlockTy > ( ) ;
64+ let ptr = args. next_arg :: < * mut FlockTy > ( ) ;
6565 libc ! ( libc:: fcntl( fd, cmd, ptr) ) ;
6666 let fd = BorrowedFd :: borrow_raw ( fd) ;
6767 let is_blocking = cmd == libc:: F_SETLKW ;
@@ -96,7 +96,7 @@ unsafe fn _fcntl<FlockTy: Flock>(fd: c_int, cmd: c_int, mut args: VaList<'_>) ->
9696 }
9797 #[ cfg( not( target_os = "wasi" ) ) ]
9898 libc:: F_DUPFD_CLOEXEC => {
99- let arg = args. arg :: < c_int > ( ) ;
99+ let arg = args. next_arg :: < c_int > ( ) ;
100100 libc ! ( libc:: fcntl( fd, libc:: F_DUPFD_CLOEXEC , arg) ) ;
101101 let fd = BorrowedFd :: borrow_raw ( fd) ;
102102 match convert_res ( rustix:: io:: fcntl_dupfd_cloexec ( fd, arg) ) {
0 commit comments