diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/shmat.c | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -1,5 +1,8 @@ 2012-03-16 David S. Miller <davem@davemloft.net> + * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid + warnings. + [BZ #6471] * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors properly. diff --git a/sysdeps/unix/sysv/linux/shmat.c b/sysdeps/unix/sysv/linux/shmat.c index dd75491..d01bb1b 100644 --- a/sysdeps/unix/sysv/linux/shmat.c +++ b/sysdeps/unix/sysv/linux/shmat.c @@ -55,7 +55,7 @@ shmat (shmid, shmaddr, shmflg) if (INTERNAL_SYSCALL_ERROR_P (resultvar, err)) { __set_errno (INTERNAL_SYSCALL_ERRNO (resultvar, err)); - return (void *) -1; + return (void *) -1l; } return BOUNDED_N (raddr, length); |