Skip to content

Commit b6542da

Browse files
committed
perform the unsafe.Pointer to uintptr type conversion similarly everywhere
1 parent 682dcf7 commit b6542da

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: unix/pledge_openbsd.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ func Pledge(promises, execpromises string) error {
3434
if err != nil {
3535
return err
3636
}
37-
expr := unsafe.Pointer(exptr)
3837

39-
_, _, e := syscall.Syscall(SYS_PLEDGE, uintptr(unsafe.Pointer(pptr)), uintptr(expr), 0)
38+
_, _, e := syscall.Syscall(SYS_PLEDGE, uintptr(unsafe.Pointer(pptr)), uintptr(unsafe.Pointer(exptr)), 0)
4039
if e != 0 {
4140
return e
4241
}

0 commit comments

Comments
 (0)