Commit 03a6c305 by Ian Lance Taylor

syscall: Fix splice syscall.

From-SVN: r194185
parent 08d8c745
...@@ -313,11 +313,13 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i ...@@ -313,11 +313,13 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
var lroff _loff_t var lroff _loff_t
var plroff *_loff_t var plroff *_loff_t
if roff != nil { if roff != nil {
lroff = _loff_t(*roff)
plroff = &lroff plroff = &lroff
} }
var lwoff _loff_t var lwoff _loff_t
var plwoff *_loff_t var plwoff *_loff_t
if woff != nil { if woff != nil {
lwoff = _loff_t(*woff)
plwoff = &lwoff plwoff = &lwoff
} }
n, err = splice(rfd, plroff, wfd, plwoff, len, flags) n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment