]> git.eshelyaron.com Git - emacs.git/commitdiff
(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 8caa4e4ea182cdb971e23cdc935334c1a79f632f..50495831a266fe407c1bcc67da2906e288db0de4 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 09732cc9bc99dd049d0643f5284bd0b790b3ece1..8c2deeb5bacbcb91d0fa9dd07e7c32112c471733 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;