From: Gerd Moellmann Date: Tue, 21 Nov 2000 12:33:01 +0000 (+0000) Subject: (mmap_free_1): Avoid a compiler warning. X-Git-Tag: emacs-pretest-21.0.92~244 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1a15cca02c0717a8e1dce8db72af379dacf651d3;p=emacs.git (mmap_free_1): Avoid a compiler warning. --- diff --git a/src/ChangeLog b/src/ChangeLog index 8caa4e4ea18..50495831a26 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2000-11-21 Gerd Moellmann + * 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 diff --git a/src/buffer.c b/src/buffer.c index 09732cc9bc9..8c2deeb5bac 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -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;