diff options
Diffstat (limited to 'sys/syz-sysgen/sysgen.go')
| -rw-r--r-- | sys/syz-sysgen/sysgen.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/syz-sysgen/sysgen.go b/sys/syz-sysgen/sysgen.go index 0427272f8..2ac48e94e 100644 --- a/sys/syz-sysgen/sysgen.go +++ b/sys/syz-sysgen/sysgen.go @@ -8,7 +8,6 @@ import ( "flag" "fmt" "io" - "io/ioutil" "os" "path/filepath" "reflect" @@ -340,7 +339,7 @@ func writeExecutorSyscalls(data *ExecutorData) { } func writeSource(file string, data []byte) { - if oldSrc, err := ioutil.ReadFile(file); err == nil && bytes.Equal(data, oldSrc) { + if oldSrc, err := os.ReadFile(file); err == nil && bytes.Equal(data, oldSrc) { return } writeFile(file, data) |
