(mmap_free_1): Avoid a compiler warning.
authorGerd Moellmann <gerd@gnu.org>
Tue, 21 Nov 2000 12:33:01 +0000 (12:33 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 21 Nov 2000 12:33:01 +0000 (12:33 +0000)
src/ChangeLog
src/buffer.c

index 8caa4e4..5049583 100644 (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>
index 09732cc..8c2deeb 100644 (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;