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:
parent
663cea5dc0
commit
2e89756b55
2 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue