summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/mips
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-08-09 12:19:23 +0000
committerEric Andersen <andersen@codepoet.org>2002-08-09 12:19:23 +0000
commitb5d62c15c360e17035bc57da77d5271a8784cb7d (patch)
treeec04dbfe6e2a861b362ac98bb9d54f9374244cb9 /libc/sysdeps/linux/mips
parent813abb7c8e83ad7382f22b1f04bb47523e34f88f (diff)
Cleanup error returns to avoid warnings
-Erik
Diffstat (limited to 'libc/sysdeps/linux/mips')
-rw-r--r--libc/sysdeps/linux/mips/bits/syscalls.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/libc/sysdeps/linux/mips/bits/syscalls.h b/libc/sysdeps/linux/mips/bits/syscalls.h
index 788e84769..0d7ae1e50 100644
--- a/libc/sysdeps/linux/mips/bits/syscalls.h
+++ b/libc/sysdeps/linux/mips/bits/syscalls.h
@@ -34,7 +34,7 @@ __asm__ volatile ("li\t$2,%2\n\t" \
if (__err == 0) \
return (type) __res; \
__set_errno(__res); \
-return -1; \
+return (type)-1; \
}
/*
@@ -56,7 +56,7 @@ __asm__ volatile ("move\t$4,%3\n\t" \
if (__err == 0) \
return (type) __res; \
__set_errno(__res); \
-return -1; \
+return (type)-1; \
}
#define _syscall2(type,name,atype,a,btype,b) \
@@ -77,7 +77,7 @@ __asm__ volatile ("move\t$4,%3\n\t" \
if (__err == 0) \
return (type) __res; \
__set_errno(__res); \
-return -1; \
+return (type)-1; \
}
#define _syscall3(type,name,atype,a,btype,b,ctype,c) \
@@ -100,7 +100,7 @@ __asm__ volatile ("move\t$4,%3\n\t" \
if (__err == 0) \
return (type) __res; \
__set_errno(__res); \
-return -1; \
+return (type)-1; \
}
#define _syscall4(type,name,atype,a,btype,b,ctype,c,dtype,d) \
@@ -125,7 +125,7 @@ __asm__ volatile ("move\t$4,%3\n\t" \
if (__err == 0) \
return (type) __res; \
__set_errno(__res); \
-return -1; \
+return (type)-1; \
}
#define _syscall5(type,name,atype,a,btype,b,ctype,c,dtype,d,etype,e) \
@@ -155,7 +155,7 @@ __asm__ volatile ("move\t$4,%3\n\t" \
if (__err == 0) \
return (type) __res; \
__set_errno(__res); \
-return -1; \
+return (type)-1; \
}
#define _syscall6(type,name,atype,a,btype,b,ctype,c,dtype,d,etype,e,ftype,f) \
@@ -188,7 +188,7 @@ __asm__ volatile ("move\t$4,%3\n\t" \
if (__err == 0) \
return (type) __res; \
__set_errno(__res); \
-return -1; \
+return (type)-1; \
}
#define _syscall7(type,name,atype,a,btype,b,ctype,c,dtype,d,etype,e,ftype,f,gtype,g) \
@@ -224,7 +224,7 @@ __asm__ volatile ("move\t$4,%3\n\t" \
if (__err == 0) \
return (type) __res; \
__set_errno(__res); \
-return -1; \
+return (type)-1; \
}
#endif /* __ASSEMBLER__ */