summaryrefslogtreecommitdiff
path: root/libffi
diff options
context:
space:
mode:
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-08 12:15:17 +0000
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-08 12:15:17 +0000
commitdcf910e23fb06bdd4e138d846d076cb0505cb7f1 (patch)
tree6eaeb461cea16b05b65bc7af62e1d9fe90a4261f /libffi
parent8bff9b728d48ade7fb6ee7ed6c4bfe8494f0201f (diff)
downloadgcc-dcf910e23fb06bdd4e138d846d076cb0505cb7f1.tar.gz
* testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
to void *. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75548 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi')
-rw-r--r--libffi/ChangeLog5
-rw-r--r--libffi/testsuite/libffi.call/ffitest.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/libffi/ChangeLog b/libffi/ChangeLog
index b69c7fb53d7..084d6269e8c 100644
--- a/libffi/ChangeLog
+++ b/libffi/ChangeLog
@@ -1,3 +1,8 @@
+2004-01-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
+
+ * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
+ to void *.
+
2003-12-10 Richard Henderson <rth@redhat.com>
* testsuite/libffi.call/cls_align_pointer.c: Cast pointers to
diff --git a/libffi/testsuite/libffi.call/ffitest.h b/libffi/testsuite/libffi.call/ffitest.h
index 8012e51288f..b41e14b8f84 100644
--- a/libffi/testsuite/libffi.call/ffitest.h
+++ b/libffi/testsuite/libffi.call/ffitest.h
@@ -67,7 +67,7 @@ allocate_mmap (size_t size)
MAP_PRIVATE, dev_zero_fd, 0);
#endif
- if (page == MAP_FAILED)
+ if (page == (void *) MAP_FAILED)
{
perror ("virtual memory exhausted");
exit (1);