From: Russ Cox Date: Tue, 26 Jun 2012 00:45:18 +0000 (-0400) Subject: syscall: fix build X-Git-Tag: go1.1rc2~2870 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=596762e9a16a250ed5670b227639f9e66140b616;p=gostls13.git 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 --- diff --git a/src/pkg/syscall/syscall_freebsd.go b/src/pkg/syscall/syscall_freebsd.go index 1339f4c454..a206ec0c7b 100644 --- a/src/pkg/syscall/syscall_freebsd.go +++ b/src/pkg/syscall/syscall_freebsd.go @@ -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)