diff options
author | edef <edef@unfathomable.blue> | 2022-07-29 17:30:13 +0000 |
---|---|---|
committer | edef <edef@unfathomable.blue> | 2022-07-29 17:30:13 +0000 |
commit | 7ea6947b777a15d29e08be0f14d6343183eb22b0 (patch) | |
tree | aa0bba48d4b0f4f37ae4a11d84745489a53ab5e7 /ripple | |
parent | 2dedda00b4ab174af853da0d13ea0d74d40645d4 (diff) | |
download | unf-legacy-7ea6947b777a15d29e08be0f14d6343183eb22b0.tar.zst |
ripple/minitrace: drop process arg to check_syscall
Change-Id: Iaf9905852fb8cef97340da149ada6e6e4c3b6d17
Diffstat (limited to 'ripple')
-rw-r--r-- | ripple/minitrace/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ripple/minitrace/src/main.rs b/ripple/minitrace/src/main.rs index 7d6a41c..71b6ef2 100644 --- a/ripple/minitrace/src/main.rs +++ b/ripple/minitrace/src/main.rs @@ -352,7 +352,7 @@ fn main() -> Result<()> { } }; - if !check_syscall(&process, &entry) { + if !check_syscall(&entry) { ptrace::kill(event_tid.as_pid())?; panic!("invalid syscall {entry:?}"); } @@ -385,7 +385,7 @@ fn main() -> Result<()> { const AT_FDCWD: i32 = -100; -fn check_syscall(process: &Process, entry: &SyscallEntry) -> bool { +fn check_syscall(entry: &SyscallEntry) -> bool { match *entry { SyscallEntry::mmap { addr: _, |