aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-check
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2025-12-19 12:52:30 +0100
committerAleksandr Nogikh <nogikh@google.com>2025-12-22 02:13:00 +0000
commita83befa0d111a0ba6fac52d763e93c76a2ef94d4 (patch)
tree7d3c28b24229429936a631e8ceb24135856b257d /tools/syz-check
parent8fb7048c5117ccb592deb5e8e4a62027e6d399cf (diff)
all: use any instead of interface{}
Any is the preferred over interface{} now in Go.
Diffstat (limited to 'tools/syz-check')
-rw-r--r--tools/syz-check/check.go4
1 files changed, 2 insertions, 2 deletions
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)