aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2000-11-21 12:33:01 +0000
committerGerd Moellmann2000-11-21 12:33:01 +0000
commit1a15cca02c0717a8e1dce8db72af379dacf651d3 (patch)
treea77166fe81acf98a95ae7871d1801103a53b6b3e /src
parent464c7d2d76d7e3780f9a3191003d9c7f7b0e8e39 (diff)
downloademacs-1a15cca02c0717a8e1dce8db72af379dacf651d3.tar.gz
emacs-1a15cca02c0717a8e1dce8db72af379dacf651d3.zip
(mmap_free_1): Avoid a compiler warning.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/buffer.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 8caa4e4ea18..50495831a26 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12000-11-21 Gerd Moellmann <gerd@gnu.org> 12000-11-21 Gerd Moellmann <gerd@gnu.org>
2 2
3 * buffer.c (mmap_free_1): Use a cast to avoid an anoying compiler
4 warning on some systems.
5
3 * term.c, cm.c: Don't try to include termcap.h; see comment there. 6 * term.c, cm.c: Don't try to include termcap.h; see comment there.
4 7
52000-11-21 Kenichi Handa <handa@etl.go.jp> 82000-11-21 Kenichi Handa <handa@etl.go.jp>
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)
4227 else 4227 else
4228 mmap_regions = r->next; 4228 mmap_regions = r->next;
4229 4229
4230 if (munmap (r, r->nbytes_mapped) == -1) 4230 if (munmap ((POINTER_TYPE *) r, r->nbytes_mapped) == -1)
4231 { 4231 {
4232 fprintf (stderr, "munmap: %s\n", emacs_strerror (errno)); 4232 fprintf (stderr, "munmap: %s\n", emacs_strerror (errno));
4233 return 0; 4233 return 0;