Commit e41b8b68 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Fix return types of NewDataFile and NewDevNullFile.

parent 91a3fbea
...@@ -34,7 +34,7 @@ func (f *dataFile) GetAttr(out *Attr) Status { ...@@ -34,7 +34,7 @@ func (f *dataFile) GetAttr(out *Attr) Status {
return OK return OK
} }
func NewDataFile(data []byte) *dataFile { func NewDataFile(data []byte) File {
f := new(dataFile) f := new(dataFile)
f.data = data f.data = data
f.File = NewDefaultFile() f.File = NewDefaultFile()
...@@ -58,7 +58,7 @@ type devNullFile struct { ...@@ -58,7 +58,7 @@ type devNullFile struct {
// NewDevNullFile returns a file that accepts any write, and always // NewDevNullFile returns a file that accepts any write, and always
// returns EOF for reads. // returns EOF for reads.
func NewDevNullFile() *devNullFile { func NewDevNullFile() File {
return &devNullFile{ return &devNullFile{
File: NewDefaultFile(), File: NewDefaultFile(),
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment