From 2e89756b555877849e74a801f67a0f01282fea49 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Thu, 8 Jan 2004 12:15:17 +0000 Subject: ffitest.h (allocate_mmap): Cast MAP_FAILED to void *. * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED to void *. From-SVN: r75548 --- libffi/ChangeLog | 5 +++++ libffi/testsuite/libffi.call/ffitest.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'libffi') diff --git a/libffi/ChangeLog b/libffi/ChangeLog index b69c7fb..084d626 100644 --- a/libffi/ChangeLog +++ b/libffi/ChangeLog @@ -1,3 +1,8 @@ +2004-01-08 Rainer Orth + + * testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED + to void *. + 2003-12-10 Richard Henderson * 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 8012e51..b41e14b 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); -- cgit v1.1