diff options
author | David S. Miller <davem@davemloft.net> | 2012-03-11 20:13:55 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-11 20:13:55 -0700 |
commit | a1bcbd4035ac2483dc10da150d4db46f3e1744f8 (patch) | |
tree | 7b43c18665f102f4f1e8748c0f376f67fe8410fb /sysdeps/unix/sysv/linux/sparc/sysdep.h | |
parent | cb9d617437084b4ebf02e50c0a82c5dd2582029a (diff) | |
download | glibc-a1bcbd4035ac2483dc10da150d4db46f3e1744f8.tar.gz glibc-a1bcbd4035ac2483dc10da150d4db46f3e1744f8.tar.xz glibc-a1bcbd4035ac2483dc10da150d4db46f3e1744f8.zip |
Fix some 64-bit sparc build warnings.
* sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c (__makecontext): Fix signedness of pointer casts setting up 'sp'. * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long' for 'resultvar' otherwise things get truncated on 64-bit.
Diffstat (limited to 'sysdeps/unix/sysv/linux/sparc/sysdep.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/sparc/sysdep.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/sparc/sysdep.h b/sysdeps/unix/sysv/linux/sparc/sysdep.h index 542e94040c..fc955c236c 100644 --- a/sysdeps/unix/sysv/linux/sparc/sysdep.h +++ b/sysdeps/unix/sysv/linux/sparc/sysdep.h @@ -22,13 +22,13 @@ #undef INLINE_SYSCALL #define INLINE_SYSCALL(name, nr, args...) \ ({ INTERNAL_SYSCALL_DECL(err); \ - unsigned int resultvar = INTERNAL_SYSCALL(name, err, nr, args); \ + unsigned long resultvar = INTERNAL_SYSCALL(name, err, nr, args);\ if (INTERNAL_SYSCALL_ERROR_P (resultvar, err)) \ { \ __set_errno (INTERNAL_SYSCALL_ERRNO (resultvar, err)); \ - resultvar = 0xffffffff; \ + resultvar = (unsigned long) -1; \ } \ - (int) resultvar; \ + (long) resultvar; \ }) #undef INTERNAL_SYSCALL_DECL |