projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add "scan helper getc" and rework strtod, etc. to use it
[oweals/musl.git]
/
src
/
internal
/
syscall_ret.c
diff --git
a/src/internal/syscall_ret.c
b/src/internal/syscall_ret.c
index 4f159e0b528fd05eb6cde5ae6ec688d667b20e51..e4a1bdbe03f3cd0c1c64c355fcf0fc2ad592c0ba 100644
(file)
--- a/
src/internal/syscall_ret.c
+++ b/
src/internal/syscall_ret.c
@@
-3,9
+3,9
@@
long __syscall_ret(unsigned long r)
{
- if (r >
= (unsigned long)-1 - 4096
) {
- errno = -
(long)
r;
+ if (r >
-4096UL
) {
+ errno = -r;
return -1;
}
- return
(long)
r;
+ return r;
}