summaryrefslogtreecommitdiffstats
path: root/libgo
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-12-05 08:49:01 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-12-05 08:49:01 +0000
commitf38ec256e3a9e78a629944bec4148dd26e5a6b6d (patch)
tree88cbdd075170a898bd8232507079c8ea5836a31f /libgo
parent900ae661a69bd6ebff6a54fb2ab20a9ba290b424 (diff)
downloadppe42-gcc-f38ec256e3a9e78a629944bec4148dd26e5a6b6d.tar.gz
ppe42-gcc-f38ec256e3a9e78a629944bec4148dd26e5a6b6d.zip
syscall: Fix splice syscall.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194185 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rw-r--r--libgo/go/syscall/libcall_linux.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
index a5421d436d6..482a23f96de 100644
--- a/libgo/go/syscall/libcall_linux.go
+++ b/libgo/go/syscall/libcall_linux.go
@@ -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 plroff *_loff_t
if roff != nil {
+ lroff = _loff_t(*roff)
plroff = &lroff
}
var lwoff _loff_t
var plwoff *_loff_t
if woff != nil {
+ lwoff = _loff_t(*woff)
plwoff = &lwoff
}
n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
OpenPOWER on IntegriCloud