runtime: use correct types in __go_ptrace shim
Make the types of the addr and data arguments in the __go_ptrace shim match the types declared in Go and the types declared by the C ptrace function, i.e., void*. This avoids a warning about an implicit int-to-pointer cast on some platforms. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/262340
This commit is contained in:
parent
6949fbefe2
commit
f33ac3b0cd
2 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
d36e74c7a1aa94fc5cf393dc705b8a1271cb01c7
|
||||
71e161daafa1e19c2c53e28fffc3954d88a4cdb2
|
||||
|
||||
The first line of this file holds the git revision number of the last
|
||||
merge done from the gofrontend repository.
|
||||
|
|
|
@ -122,7 +122,7 @@ __go_syscall6(uintptr_t flag, uintptr_t a1, uintptr_t a2, uintptr_t a3,
|
|||
// a variadic function within glibc.
|
||||
|
||||
long
|
||||
__go_ptrace(int request, pid_t pid, uintptr_t addr, uintptr_t data)
|
||||
__go_ptrace(int request, pid_t pid, void *addr, void *data)
|
||||
{
|
||||
return ptrace (request, pid, addr, data);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue