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.16-ports-merge-576-gcbc818d
- From: tschwinge at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 31 Oct 2012 23:24:48 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.16-ports-merge-576-gcbc818d
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 cbc818d0ee66065f3942beffdca82986615aa19a (commit)
from 5a03cb1e8542fc96dcc072163f5c76f242717159 (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=cbc818d0ee66065f3942beffdca82986615aa19a
commit cbc818d0ee66065f3942beffdca82986615aa19a
Author: Thomas Schwinge <thomas@codesourcery.com>
Date: Thu Nov 1 00:23:09 2012 +0100
Correct checking for mmap failure.
diff --git a/ChangeLog b/ChangeLog
index 6992adc..1296ee6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-10-31 Thomas Schwinge <thomas@codesourcery.com>
+
+ * rt/tst-shm.c (worker): Correct checking for mmap failure.
+
2012-10-31 Andreas Schwab <schwab@linux-m68k.org>
* sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
diff --git a/rt/tst-shm.c b/rt/tst-shm.c
index 92593bd..457b075 100644
--- a/rt/tst-shm.c
+++ b/rt/tst-shm.c
@@ -73,7 +73,7 @@ worker (int write_now)
error (EXIT_FAILURE, 0, "size incorrect");
mem = mmap (NULL, 4000, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
- if (mem == NULL)
+ if (mem == MAP_FAILED)
error (EXIT_FAILURE, 0, "mmap failed");
ts.tv_sec = 0;
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 4 ++++
rt/tst-shm.c | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources