Skip to content

Commit 9932f2e

Browse files
dgryskideadprogram
authored andcommitted
builder: os.SEEK_CUR -> io.SeekCurrent
1 parent bf8d646 commit 9932f2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builder/ar.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func makeArchive(arfile *os.File, objs []string) error {
150150
}
151151

152152
// Keep track of the start of the symbol table.
153-
symbolTableStart, err := arfile.Seek(0, os.SEEK_CUR)
153+
symbolTableStart, err := arfile.Seek(0, io.SeekCurrent)
154154
if err != nil {
155155
return err
156156
}
@@ -172,7 +172,7 @@ func makeArchive(arfile *os.File, objs []string) error {
172172

173173
// Store the start index, for when we'll update the symbol table with
174174
// the correct file start indices.
175-
offset, err := arfile.Seek(0, os.SEEK_CUR)
175+
offset, err := arfile.Seek(0, io.SeekCurrent)
176176
if err != nil {
177177
return err
178178
}

0 commit comments

Comments
 (0)