summaryrefslogtreecommitdiff
path: root/src/lib/io/pipe.go
diff options
context:
space:
mode:
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;