From d7eea914485d5d5d3c7b29a74a68541240b6a090 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Sun, 7 Mar 2010 12:27:03 +0200 Subject: [PATCH] Cast caddr_t argument for ptrace --- src/ptrace/_UPT_access_fpreg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ptrace/_UPT_access_fpreg.c b/src/ptrace/_UPT_access_fpreg.c index 7992eb1d..23c34bfc 100644 --- a/src/ptrace/_UPT_access_fpreg.c +++ b/src/ptrace/_UPT_access_fpreg.c @@ -78,7 +78,7 @@ _UPT_access_fpreg (unw_addr_space_t as, unw_regnum_t reg, unw_fpreg_t *val, if ((unsigned) reg >= sizeof (_UPT_reg_offset) / sizeof (_UPT_reg_offset[0])) return -UNW_EBADREG; - if (ptrace(PT_GETFPREGS, pid, &fpreg, 0) == -1) + if (ptrace(PT_GETFPREGS, pid, (caddr_t)&fpreg, 0) == -1) return -UNW_EBADREG; if (write) { #if defined(__amd64__) @@ -88,7 +88,7 @@ _UPT_access_fpreg (unw_addr_space_t as, unw_regnum_t reg, unw_fpreg_t *val, #else #error Fix me #endif - if (ptrace(PT_SETFPREGS, pid, &fpreg, 0) == -1) + if (ptrace(PT_SETFPREGS, pid, (caddr_t)&fpreg, 0) == -1) return -UNW_EBADREG; } else #if defined(__amd64__)