sysfs: fix compile-time check on osFile (#2100)

Signed-off-by: Karel Bilek <kb@karelbilek.com>
This commit is contained in:
Karel Bilek
2024-02-27 13:07:29 +01:00
committed by GitHub
parent caf1f43c18
commit ba569623fc

View File

@@ -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.