diff options
| author | Taras Madan <tarasmadan@google.com> | 2023-02-23 14:28:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-23 14:28:18 +0100 |
| commit | 4359978ef22a22ddd5a19adf18cbc80cb44244fb (patch) | |
| tree | 7952da94e27417b39ddf952d9e0bab431dafc4c5 /tools/syz-kconf/parser.go | |
| parent | 9e2ebb3c174f1e168bc1fbadd5f02f2e25e314fc (diff) | |
all: ioutil is deprecated in go1.19 (#3718)
Diffstat (limited to 'tools/syz-kconf/parser.go')
| -rw-r--r-- | tools/syz-kconf/parser.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/syz-kconf/parser.go b/tools/syz-kconf/parser.go index b2ac82e74..05531a227 100644 --- a/tools/syz-kconf/parser.go +++ b/tools/syz-kconf/parser.go @@ -6,7 +6,7 @@ package main import ( "bytes" "fmt" - "io/ioutil" + "os" "path/filepath" "strconv" "strings" @@ -89,7 +89,7 @@ type rawFile struct { } func parseMainSpec(file string) ([]*Instance, []string, error) { - data, err := ioutil.ReadFile(file) + data, err := os.ReadFile(file) if err != nil { return nil, nil, fmt.Errorf("failed to read config file: %v", err) } @@ -159,7 +159,7 @@ func parseInstance(name, configDir string, features []string, includes []map[str } func parseFile(file string) (*rawFile, error) { - data, err := ioutil.ReadFile(file) + data, err := os.ReadFile(file) if err != nil { return nil, fmt.Errorf("failed to read %v: %v", file, err) } |
