Skip to content

Commit b1052cf

Browse files
committed
Use va instead of args
1 parent 4d8530c commit b1052cf

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

rules/fcntl/tgt_refcount.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33

44
use libcc2rs::*;
55

6-
fn f1(a0: i32, a1: i32, args: &[VaArg]) -> i32 {
6+
fn f1(a0: i32, a1: i32, va: &[VaArg]) -> i32 {
77
panic!(
88
"fcntl is not supported in the refcount model (fd={}, cmd={}, varargs={})",
99
a0,
1010
a1,
11-
args.len()
11+
va.len()
1212
)
1313
}
1414

15-
fn f2(a0: Ptr<u8>, a1: i32, args: &[VaArg]) -> i32 {
15+
fn f2(a0: Ptr<u8>, a1: i32, va: &[VaArg]) -> i32 {
1616
panic!(
1717
"open is not supported in the refcount model (path={:?}, flags={}, varargs={})",
1818
a0.to_rust_string(),
1919
a1,
20-
args.len()
20+
va.len()
2121
)
2222
}

rules/ioctl/tgt_refcount.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
use libcc2rs::*;
55

6-
fn f1(a0: i32, a1: u64, args: &[VaArg]) -> i32 {
6+
fn f1(a0: i32, a1: u64, va: &[VaArg]) -> i32 {
77
panic!(
88
"ioctl is not supported in the refcount model (fd={}, request={}, varargs={})",
99
a0,
1010
a1,
11-
args.len()
11+
va.len()
1212
)
1313
}

0 commit comments

Comments
 (0)