Skip to content

Commit

Permalink
builder: os.SEEK_CUR -> io.SeekCurrent
Browse files Browse the repository at this point in the history
  • Loading branch information
dgryski authored and deadprogram committed Aug 15, 2024
1 parent bf8d646 commit 9932f2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builder/ar.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
Expand Down

0 comments on commit 9932f2e

Please sign in to comment.