From a83befa0d111a0ba6fac52d763e93c76a2ef94d4 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 19 Dec 2025 12:52:30 +0100 Subject: all: use any instead of interface{} Any is the preferred over interface{} now in Go. --- tools/syz-check/check.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/syz-check') diff --git a/tools/syz-check/check.go b/tools/syz-check/check.go index 8021e8720..bc57ea462 100644 --- a/tools/syz-check/check.go +++ b/tools/syz-check/check.go @@ -230,7 +230,7 @@ func checkImpl(structs map[string]*dwarf.StructType, structTypes []prog.Type, func checkStruct(typ prog.Type, astStruct *ast.Struct, str *dwarf.StructType) ([]Warn, error) { var warnings []Warn - warn := func(pos ast.Pos, typ, msg string, args ...interface{}) { + warn := func(pos ast.Pos, typ, msg string, args ...any) { warnings = append(warnings, Warn{pos: pos, typ: typ, msg: fmt.Sprintf(msg, args...)}) } name := typ.TemplateName() @@ -558,7 +558,7 @@ func isNlattr(typ prog.Type) bool { func checkNetlinkPolicy(structMap map[string]prog.Type, typ prog.Type, fields []prog.Field, astStruct *ast.Struct, policy []nlaPolicy) ([]Warn, map[int]bool, error) { var warnings []Warn - warn := func(pos ast.Pos, typ, msg string, args ...interface{}) { + warn := func(pos ast.Pos, typ, msg string, args ...any) { warnings = append(warnings, Warn{pos: pos, typ: typ, msg: fmt.Sprintf(msg, args...)}) } checked := make(map[int]bool) -- cgit mrf-deployment