From: Robert Griesemer Date: Thu, 15 Jan 2009 23:14:19 +0000 (-0800) Subject: - fixed untab.go to compile again X-Git-Tag: weekly.2009-11-06~2371 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2ab55776b5e7c5c1336af3a3234974b31c99af1e;p=gostls13.git - fixed untab.go to compile again R=r OCL=22871 CL=22871 --- diff --git a/usr/gri/pretty/untab.go b/usr/gri/pretty/untab.go index b01fd1e95d..dea25c51fb 100644 --- a/usr/gri/pretty/untab.go +++ b/usr/gri/pretty/untab.go @@ -19,16 +19,16 @@ var ( ) -func Error(format string, params ...) { - fmt.printf(format, params); +func error(format string, params ...) { + fmt.Printf(format, params); sys.exit(1); } -func Untab(name string, src *os.FD, dst *tabwriter.Writer) { +func untab(name string, src *os.FD, dst *tabwriter.Writer) { n, err := io.Copy(src, dst); if err != nil { - Error("error while processing %s (%v)", name, err); + error("error while processing %s (%v)", name, err); } //dst.Flush(); } @@ -46,13 +46,13 @@ func main() { name := flag.Arg(i); src, err := os.Open(name, os.O_RDONLY, 0); if err != nil { - Error("could not open %s (%v)\n", name, err); + error("could not open %s (%v)\n", name, err); } - Untab(name, src, dst); + untab(name, src, dst); src.Close(); // ignore errors } } else { // no files => use stdin - Untab("/dev/stdin", os.Stdin, dst); + untab("/dev/stdin", os.Stdin, dst); } }