2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-04-13 16:21:53 +08:00

ffitest.h (allocate_mmap): Cast MAP_FAILED to void *.

* testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
	to void *.

From-SVN: r75548
This commit is contained in:
Rainer Orth 2004-01-08 12:15:17 +00:00 committed by Rainer Orth
parent 663cea5dc0
commit 2e89756b55
2 changed files with 6 additions and 1 deletions
libffi
ChangeLog
testsuite/libffi.call

@ -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

@ -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);