From 34da991298a2b91f7f10526c5d44ade621229b35 Mon Sep 17 00:00:00 2001 From: Ariel Otilibili Date: Thu, 23 Oct 2025 10:53:54 +0200 Subject: [PATCH] libcontainer/seccomp: Use for range over integers The commit mentioned below has missed these changes. Fixes: 17570625 ("Use for range over integers") Signed-off-by: Ariel Otilibili --- libcontainer/seccomp/patchbpf/enosys_linux_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcontainer/seccomp/patchbpf/enosys_linux_test.go b/libcontainer/seccomp/patchbpf/enosys_linux_test.go index cb8458929e6..91f337da74d 100644 --- a/libcontainer/seccomp/patchbpf/enosys_linux_test.go +++ b/libcontainer/seccomp/patchbpf/enosys_linux_test.go @@ -299,8 +299,8 @@ func TestEnosysStub_SingleArch(t *testing.T) { } func TestEnosysStub_MultiArch(t *testing.T) { - for end := 0; end < len(testArches); end++ { - for start := 0; start < end; start++ { + for end := range len(testArches) { + for start := range end { var arches []string for _, arch := range testArches[start:end] { // "native" indicates a blank architecture field for seccomp, to test