OSDN Git Service

* testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Jan 2004 12:15:17 +0000 (12:15 +0000)
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Jan 2004 12:15:17 +0000 (12:15 +0000)
to void *.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75548 138bc75d-0d04-0410-961f-82ee72b054a4

libffi/ChangeLog
libffi/testsuite/libffi.call/ffitest.h

index b69c7fb..084d626 100644 (file)
@@ -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
index 8012e51..b41e14b 100644 (file)
@@ -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);