diff options
author | Eric Andersen <andersen@codepoet.org> | 2005-01-11 11:25:32 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2005-01-11 11:25:32 +0000 |
commit | b3e4a879a534add27e8435b11628d4d79d706434 (patch) | |
tree | 267603dc4964c89249ca19e71754d0bfa04fa0a3 /libc/sysdeps/linux/m68k | |
parent | e6275a2eaba64768994ee31fd6c10383afa087d4 (diff) |
Patch from Bernardo Innocenti:
Remove use of cast-as-l-value extension, removed in GCC 3.5.
Diffstat (limited to 'libc/sysdeps/linux/m68k')
-rw-r--r-- | libc/sysdeps/linux/m68k/ptrace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/m68k/ptrace.c b/libc/sysdeps/linux/m68k/ptrace.c index 423be05e2..e595a6ecd 100644 --- a/libc/sysdeps/linux/m68k/ptrace.c +++ b/libc/sysdeps/linux/m68k/ptrace.c @@ -8,7 +8,8 @@ ptrace(int request, int pid, int addr, int data) { long ret; long res; - if (request > 0 && request < 4) (long *)data = &ret; + if (request > 0 && request < 4) data = (int)&ret; + __asm__ volatile ("movel %1,%/d0\n\t" "movel %2,%/d1\n\t" |