From 24762f09de2aa8cada3f3c63afa313e06ebf47c8 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Mon, 29 Sep 2025 21:45:56 +0200 Subject: replace deprecated dependencies with their successors --- vendor/golang.org/x/sys/unix/affinity_linux.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'vendor/golang.org/x/sys/unix/affinity_linux.go') diff --git a/vendor/golang.org/x/sys/unix/affinity_linux.go b/vendor/golang.org/x/sys/unix/affinity_linux.go index 6e5c81a..3c7a6d6 100644 --- a/vendor/golang.org/x/sys/unix/affinity_linux.go +++ b/vendor/golang.org/x/sys/unix/affinity_linux.go @@ -38,9 +38,7 @@ func SchedSetaffinity(pid int, set *CPUSet) error { // Zero clears the set s, so that it contains no CPUs. func (s *CPUSet) Zero() { - for i := range s { - s[i] = 0 - } + clear(s[:]) } func cpuBitsIndex(cpu int) int { -- cgit v1.3.1