diff options
author | Russ Cox <rsc@golang.org> | 2009-03-11 12:51:10 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-03-11 12:51:10 -0700 |
commit | 58b0883da1bb400157f2cbd1c890f4f712403c4d (patch) | |
tree | 6700308658c711a896e1c4a352a5ad41e706b304 /usr/gri/pretty/platform.go | |
parent | dac7740a27a435fd647792160e9c75daf5889fe7 (diff) | |
download | golang-58b0883da1bb400157f2cbd1c890f4f712403c4d.tar.gz |
Rename os.FD to os.File.
Make Fstat, Readdirnames, and Readdir methods
on os.File.
R=r
DELTA=281 (79 added, 3 deleted, 199 changed)
OCL=25891
CL=26130
Diffstat (limited to 'usr/gri/pretty/platform.go')
-rw-r--r-- | usr/gri/pretty/platform.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/gri/pretty/platform.go b/usr/gri/pretty/platform.go index 8aced7b9f..ed6803052 100644 --- a/usr/gri/pretty/platform.go +++ b/usr/gri/pretty/platform.go @@ -38,13 +38,13 @@ const ( ) func readfile(filename string) ([]byte, *OS.Error) { - fd, err := OS.Open(filename, OS.O_RDONLY, 0); + f, err := OS.Open(filename, OS.O_RDONLY, 0); if err != nil { return []byte{}, err; } var buf [1<<20]byte; - n, err1 := IO.Readn(fd, buf); - fd.Close(); + n, err1 := IO.Readn(f, buf); + f.Close(); if err1 == IO.ErrEOF { err1 = nil; } |