1
0
mirror of https://github.com/golang/go synced 2024-11-24 15:10:02 -07:00

syscall: fix build

I missed the API change in the last FreeBSD CL, but the tool caught it.

TBR=bradfitz
CC=golang-dev
https://golang.org/cl/6331063
This commit is contained in:
Russ Cox 2012-06-25 20:45:18 -04:00
parent abb3c0618b
commit 596762e9a1

View File

@ -89,9 +89,9 @@ func Pipe(p []int) (err error) {
return
}
func Sendfile(outfd int, infd int, offset int64, count int) (written int, err error) {
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
var writtenOut uint64 = 0
_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0, 0)
_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0, 0)
written = int(writtenOut)