mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 05:09:43 +00:00
Silence warning on OpenBSD by casting to caddr_t. (#6453)
Gets rid of this: p/debug_native.c: In function 'bsd_reg_read': p/debug_native.c:674: warning: passing argument 3 of 'ptrace' from incompatible pointer type
This commit is contained in:
parent
e3e19385e8
commit
1e5a4f05ff
@ -671,7 +671,7 @@ static int bsd_reg_read (RDebug *dbg, int type, ut8* buf, int size) {
|
||||
memset (®s, 0, sizeof(regs));
|
||||
memset (buf, 0, size);
|
||||
#if __NetBSD__ || __OpenBSD__
|
||||
ret = ptrace (PTRACE_GETREGS, pid, ®s, sizeof (regs));
|
||||
ret = ptrace (PTRACE_GETREGS, pid, (caddr_t)®s, sizeof (regs));
|
||||
#elif __KFBSD__
|
||||
ret = ptrace(PT_GETREGS, pid, (caddr_t)®s, 0);
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user