Commit 2e89756b by Rainer Orth Committed by Rainer Orth

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

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

From-SVN: r75548
parent 663cea5d
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment