diff options
Diffstat (limited to 'container/std/syscall.go')
| -rw-r--r-- | container/std/syscall.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/container/std/syscall.go b/container/std/syscall.go index ff8d396e..eb71e071 100644 --- a/container/std/syscall.go +++ b/container/std/syscall.go @@ -3,8 +3,8 @@ package std import "iter" // Syscalls returns an iterator over all wired syscalls. -func Syscalls() iter.Seq2[string, int] { - return func(yield func(string, int) bool) { +func Syscalls() iter.Seq2[string, ScmpSyscall] { + return func(yield func(string, ScmpSyscall) bool) { for name, num := range syscallNum { if !yield(name, num) { return @@ -19,7 +19,7 @@ func Syscalls() iter.Seq2[string, int] { } // SyscallResolveName resolves a syscall number from its string representation. -func SyscallResolveName(name string) (num int, ok bool) { +func SyscallResolveName(name string) (num ScmpSyscall, ok bool) { if num, ok = syscallNum[name]; ok { return } |
