summaryrefslogtreecommitdiff
path: root/src/lib/io/pipe.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-03-03 08:39:12 -0800
committerRuss Cox <rsc@golang.org>2009-03-03 08:39:12 -0800
commit150fc635c53ef552024088ac65f82522b3626808 (patch)
tree028f4f1a5f6b78795c1a1ef840b49c7da342edd1 /src/lib/io/pipe.go
parent4041d184e8f1e2123b1d32d5f39190d34f50ea7e (diff)
downloadgolang-150fc635c53ef552024088ac65f82522b3626808.tar.gz
Automated g4 rollback of changelist 25024,
plus significant hand editing. Back to T{x} for composite literals. R=r OCL=25612 CL=25632
Diffstat (limited to 'src/lib/io/pipe.go')
-rw-r--r--src/lib/io/pipe.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/io/pipe.go b/src/lib/io/pipe.go
index 736f49798..6ef080f4d 100644
--- a/src/lib/io/pipe.go
+++ b/src/lib/io/pipe.go
@@ -58,7 +58,7 @@ func (p *pipe) Read(data []byte) (n int, err *os.Error) {
// If write block is done, finish the write.
if len(p.wpend) == 0 {
p.wpend = nil;
- p.cw <- pipeReturn(p.wtot, nil);
+ p.cw <- pipeReturn{p.wtot, nil};
p.wtot = 0;
}
@@ -91,7 +91,7 @@ func (p *pipe) CloseReader() *os.Error {
// Stop the current write.
if !p.wclosed {
- p.cw <- pipeReturn(p.wtot, os.EPIPE);
+ p.cw <- pipeReturn{p.wtot, os.EPIPE};
}
return nil;