summaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-09-09 21:11:05 -0700
committerJesse Duffield <jessedduffield@gmail.com>2022-09-16 08:42:39 -0700
commit7af7af27c6252b862989d11f930787e5b370b119 (patch)
treea12b68c82de17aafb3b3479e81aae363a4cdec4e /vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go
parent7b757d1cfe88363aa52a660d53838478243eca00 (diff)
various changes to improve integration tests
Diffstat (limited to 'vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go')
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go
index 82be61a2f..9ed8eec6c 100644
--- a/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go
@@ -61,7 +61,7 @@ func PtraceGetFsBase(pid int, fsbase *int64) (err error) {
}
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
- ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint64(countin)}
+ ioDesc := PtraceIoDesc{Op: int32(req), Offs: uintptr(unsafe.Pointer(addr)), Addr: uintptr(unsafe.Pointer(&out[0])), Len: uint64(countin)}
err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
return int(ioDesc.Len), err
}