[uClibc] [PATCH] Remove use of cast-as-l-value extension from uClibc
Bernardo Innocenti
bernie at develer.com
Sat May 29 02:25:42 UTC 2004
Remove use of cast-as-l-value extension, removed in GCC 3.5.
--- uClibc-0.9.26/libc/sysdeps/linux/m68k/ptrace.c.orig 2004-05-29 04:20:50.930239039 +0200
+++ uClibc-0.9.26/libc/sysdeps/linux/m68k/ptrace.c 2004-05-29 04:18:37.787077340 +0200
@@ -8,7 +8,7 @@ ptrace(int request, int pid, int addr, i
{
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"
--
// Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/ http://www.develer.com/
More information about the uClibc
mailing list