perform the unsafe.Pointer to uintptr type conversion similarly everywhere

This commit is contained in:
Josh Rickmar
2023-10-24 13:22:14 +00:00
parent 682dcf7407
commit b6542da286

View File

@@ -34,9 +34,8 @@ func Pledge(promises, execpromises string) error {
if err != nil {
return err
}
expr := unsafe.Pointer(exptr)
_, _, e := syscall.Syscall(SYS_PLEDGE, uintptr(unsafe.Pointer(pptr)), uintptr(expr), 0)
_, _, e := syscall.Syscall(SYS_PLEDGE, uintptr(unsafe.Pointer(pptr)), uintptr(unsafe.Pointer(exptr)), 0)
if e != 0 {
return e
}