1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-23 10:34:07 +00:00

(mmap_free_1): Avoid a compiler warning.

This commit is contained in:
Gerd Moellmann 2000-11-21 12:33:01 +00:00
parent 464c7d2d76
commit 1a15cca02c
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2000-11-21 Gerd Moellmann <gerd@gnu.org>
* buffer.c (mmap_free_1): Use a cast to avoid an anoying compiler
warning on some systems.
* term.c, cm.c: Don't try to include termcap.h; see comment there.
2000-11-21 Kenichi Handa <handa@etl.go.jp>

View File

@ -4227,7 +4227,7 @@ mmap_free_1 (r)
else
mmap_regions = r->next;
if (munmap (r, r->nbytes_mapped) == -1)
if (munmap ((POINTER_TYPE *) r, r->nbytes_mapped) == -1)
{
fprintf (stderr, "munmap: %s\n", emacs_strerror (errno));
return 0;