From 7ea6947b777a15d29e08be0f14d6343183eb22b0 Mon Sep 17 00:00:00 2001
From: edef <edef@unfathomable.blue>
Date: Fri, 29 Jul 2022 17:30:13 +0000
Subject: ripple/minitrace: drop process arg to check_syscall

Change-Id: Iaf9905852fb8cef97340da149ada6e6e4c3b6d17
---
 ripple/minitrace/src/main.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'ripple')

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: _,
-- 
cgit 1.4.1