This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch, master, updated. glibc-2.15-423-g77e927a
- From: davem at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 17 Mar 2012 04:05:13 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.15-423-g77e927a
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 77e927affd576fcbb751144f60b098b7f0427045 (commit)
from 7e7fa5f8719c0a497f4b262e6fb5625c13b6c22e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=77e927affd576fcbb751144f60b098b7f0427045
commit 77e927affd576fcbb751144f60b098b7f0427045
Author: David S. Miller <davem@davemloft.net>
Date: Fri Mar 16 21:02:54 2012 -0700
Fix warnings when uintptr_t is larger than int.
* sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
warnings.
diff --git a/ChangeLog b/ChangeLog
index df662af..c58e919 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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);
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 3 +++
sysdeps/unix/sysv/linux/shmat.c | 2 +-
2 files changed, 4 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources