mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
Fix warnings when uintptr_t is larger than int.
* sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid warnings.
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
2012-03-16 David S. Miller <davem@davemloft.net>
|
2012-03-16 David S. Miller <davem@davemloft.net>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
|
||||||
|
warnings.
|
||||||
|
|
||||||
[BZ #6471]
|
[BZ #6471]
|
||||||
* sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
|
* sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
|
||||||
properly.
|
properly.
|
||||||
|
@ -55,7 +55,7 @@ shmat (shmid, shmaddr, shmflg)
|
|||||||
if (INTERNAL_SYSCALL_ERROR_P (resultvar, err))
|
if (INTERNAL_SYSCALL_ERROR_P (resultvar, err))
|
||||||
{
|
{
|
||||||
__set_errno (INTERNAL_SYSCALL_ERRNO (resultvar, err));
|
__set_errno (INTERNAL_SYSCALL_ERRNO (resultvar, err));
|
||||||
return (void *) -1;
|
return (void *) -1l;
|
||||||
}
|
}
|
||||||
|
|
||||||
return BOUNDED_N (raddr, length);
|
return BOUNDED_N (raddr, length);
|
||||||
|
Reference in New Issue
Block a user