Browse Source

Patch from Bernardo Innocenti:
Remove use of cast-as-l-value extension, removed in GCC 3.5.

Eric Andersen 19 years ago
parent
commit
b3e4a879a5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      libc/sysdeps/linux/m68k/ptrace.c

+ 2 - 1
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"