summaryrefslogtreecommitdiff
path: root/libgo/go/net/sendfile_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/net/sendfile_windows.go')
-rw-r--r--libgo/go/net/sendfile_windows.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/net/sendfile_windows.go b/libgo/go/net/sendfile_windows.go
index 3772eee2490..d9c2f537a3d 100644
--- a/libgo/go/net/sendfile_windows.go
+++ b/libgo/go/net/sendfile_windows.go
@@ -54,7 +54,7 @@ func sendFile(c *netFD, r io.Reader) (written int64, err os.Error, handled bool)
defer c.decref()
var o sendfileOp
- o.Init(c)
+ o.Init(c, 'w')
o.n = uint32(n)
o.src = f.Fd()
done, err := iosrv.ExecIO(&o, 0)