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:
nevun 2017-01-09 13:47:24 +01:00 committed by radare
parent e3e19385e8
commit 1e5a4f05ff

View File

@ -671,7 +671,7 @@ static int bsd_reg_read (RDebug *dbg, int type, ut8* buf, int size) {
memset (&regs, 0, sizeof(regs));
memset (buf, 0, size);
#if __NetBSD__ || __OpenBSD__
ret = ptrace (PTRACE_GETREGS, pid, &regs, sizeof (regs));
ret = ptrace (PTRACE_GETREGS, pid, (caddr_t)&regs, sizeof (regs));
#elif __KFBSD__
ret = ptrace(PT_GETREGS, pid, (caddr_t)&regs, 0);
#else