diff options
Diffstat (limited to 'src/lib/net/parse.go')
| -rw-r--r-- | src/lib/net/parse.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/net/parse.go b/src/lib/net/parse.go index e9aaf0630..194f41290 100644 --- a/src/lib/net/parse.go +++ b/src/lib/net/parse.go @@ -13,12 +13,12 @@ import ( ) type file struct { - fd *os.FD; + file *os.File; data []byte; } func (f *file) close() { - f.fd.Close() + f.file.Close() } func (f *file) getLineFromData() (s string, ok bool) { @@ -46,7 +46,7 @@ func (f *file) readLine() (s string, ok bool) { } if len(f.data) < cap(f.data) { ln := len(f.data); - n, err := io.Readn(f.fd, f.data[ln:cap(f.data)]); + n, err := io.Readn(f.file, f.data[ln:cap(f.data)]); if n >= 0 { f.data = f.data[0:ln+n]; } |
