From 4359978ef22a22ddd5a19adf18cbc80cb44244fb Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Thu, 23 Feb 2023 14:28:18 +0100 Subject: all: ioutil is deprecated in go1.19 (#3718) --- tools/syz-mutate/mutate.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tools/syz-mutate') diff --git a/tools/syz-mutate/mutate.go b/tools/syz-mutate/mutate.go index 032d31614..5c97f92e9 100644 --- a/tools/syz-mutate/mutate.go +++ b/tools/syz-mutate/mutate.go @@ -7,7 +7,6 @@ package main import ( "flag" "fmt" - "io/ioutil" "math/rand" "os" "runtime" @@ -72,7 +71,7 @@ func main() { if flag.NArg() == 0 { p = target.Generate(rs, *flagLen, ct) } else { - data, err := ioutil.ReadFile(flag.Arg(0)) + data, err := os.ReadFile(flag.Arg(0)) if err != nil { fmt.Fprintf(os.Stderr, "failed to read prog file: %v\n", err) os.Exit(1) -- cgit mrf-deployment