diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-02 00:12:23 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-02 00:12:23 +0000 |
commit | 1472d5965177f2c7eb7fedb80b5d47d4500b5975 (patch) | |
tree | fcd75547b89ebfd8607795ce5d586292915df7aa /gcc/ggc-common.c | |
parent | 6cb758f05ba67cdf78b3dbcca9b45159f136bca5 (diff) | |
download | gcc-1472d5965177f2c7eb7fedb80b5d47d4500b5975.tar.gz |
* ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
(gt_pch_restore): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68802 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ggc-common.c')
-rw-r--r-- | gcc/ggc-common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c index 12f0fccd780..3163c15f83b 100644 --- a/gcc/ggc-common.c +++ b/gcc/ggc-common.c @@ -457,7 +457,7 @@ gt_pch_save (FILE *f) mmi.preferred_base = mmap (NULL, mmi.size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fileno (state.f), 0); - if (mmi.preferred_base == MAP_FAILED) + if (mmi.preferred_base == (void *) MAP_FAILED) mmi.preferred_base = NULL; else munmap (mmi.preferred_base, mmi.size); @@ -582,7 +582,7 @@ gt_pch_restore (FILE *f) size_t page_size = getpagesize(); char one_byte; - if (addr != MAP_FAILED) + if (addr != (void *) MAP_FAILED) munmap (addr, mmi.size); /* We really want to be mapped at mmi.preferred_base @@ -609,7 +609,7 @@ gt_pch_restore (FILE *f) #else /* HAVE_MMAP_FILE */ addr = MAP_FAILED; #endif /* HAVE_MMAP_FILE */ - if (addr == MAP_FAILED) + if (addr == (void *) MAP_FAILED) { addr = xmalloc (mmi.size); if (fseek (f, mmi.offset, SEEK_SET) != 0 |