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:
parent
464c7d2d76
commit
1a15cca02c
@ -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>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user