Browse Source

sparc: pipe.S

return value of pipe on success is supposed to be 0

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Austin Foxley 13 years ago
parent
commit
c50d27fa8b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libc/sysdeps/linux/sparc/pipe.S

+ 1 - 1
libc/sysdeps/linux/sparc/pipe.S

@@ -49,7 +49,7 @@ pipe:
     st %o0,[%i0]
     st %o1,[%i0+4]
 	ret
-	 restore %o0,%g0,%o0
+	 restore %g0,%g0,%o0
 
 .Lerror:
 	call	HIDDEN_JUMPTARGET(__errno_location)