Skip to content

Commit

Permalink
sysfs: fix compile-time check on osFile (tetratelabs#2100)
Browse files Browse the repository at this point in the history
Signed-off-by: Karel Bilek <kb@karelbilek.com>
  • Loading branch information
karelbilek authored and evacchi committed Feb 28, 2024
1 parent 7a0bcb3 commit 88c0e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/sysfs/osfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (f *osFile) SetAppend(enable bool) (errno experimentalsys.Errno) {
}

// compile-time check to ensure osFile.reopen implements reopenFile.
var _ reopenFile = (*fsFile)(nil).reopen
var _ reopenFile = (*osFile)(nil).reopen

func (f *osFile) reopen() (errno experimentalsys.Errno) {
// Clear any create flag, as we are re-opening, not re-creating.
Expand Down

0 comments on commit 88c0e71

Please sign in to comment.