From: hopehook Date: Fri, 16 Sep 2022 00:13:23 +0000 (+0800) Subject: misc/cgo: replace os.SEEK_SET with io.SeekStart X-Git-Tag: go1.20rc1~1002 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=351037d16c16602388709b846420094eabb5ce16;p=gostls13.git misc/cgo: replace os.SEEK_SET with io.SeekStart Since os.SEEK_SET was deprecated, use io.SeekStart instead. Change-Id: I11ae496b071ab35412403ff73e52f3da73d5b120 Reviewed-on: https://go-review.googlesource.com/c/go/+/431096 Run-TryBot: Ian Lance Taylor Run-TryBot: hopehook Reviewed-by: Cherry Mui Reviewed-by: Ian Lance Taylor TryBot-Result: Gopher Robot Auto-Submit: Ian Lance Taylor --- diff --git a/misc/cgo/testcarchive/carchive_test.go b/misc/cgo/testcarchive/carchive_test.go index f8be3f9c0c..30e12be6c6 100644 --- a/misc/cgo/testcarchive/carchive_test.go +++ b/misc/cgo/testcarchive/carchive_test.go @@ -402,7 +402,7 @@ func checkELFArchive(t *testing.T, arname string) { } off += size - if _, err := f.Seek(off, os.SEEK_SET); err != nil { + if _, err := f.Seek(off, io.SeekStart); err != nil { t.Errorf("%s: failed to seek to %d: %v", arname, off, err) } }