Skip to content

Commit

Permalink
perform the unsafe.Pointer to uintptr type conversion similarly every…
Browse files Browse the repository at this point in the history
…where
  • Loading branch information
jrick committed Oct 24, 2023
1 parent 682dcf7 commit b6542da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions unix/pledge_openbsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b6542da

Please sign in to comment.