From 9932f2e1268d38b413ed69dc396df437810ce69b Mon Sep 17 00:00:00 2001 From: Damian Gryski Date: Wed, 14 Aug 2024 12:08:36 -0700 Subject: [PATCH] builder: os.SEEK_CUR -> io.SeekCurrent --- builder/ar.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/ar.go b/builder/ar.go index 807595b7..245f08ff 100644 --- a/builder/ar.go +++ b/builder/ar.go @@ -150,7 +150,7 @@ func makeArchive(arfile *os.File, objs []string) error { } // Keep track of the start of the symbol table. - symbolTableStart, err := arfile.Seek(0, os.SEEK_CUR) + symbolTableStart, err := arfile.Seek(0, io.SeekCurrent) if err != nil { return err } @@ -172,7 +172,7 @@ func makeArchive(arfile *os.File, objs []string) error { // Store the start index, for when we'll update the symbol table with // the correct file start indices. - offset, err := arfile.Seek(0, os.SEEK_CUR) + offset, err := arfile.Seek(0, io.SeekCurrent) if err != nil { return err }