]> granicus.if.org Git - libexpat/commitdiff
Replace caddr_t by "void *" for -std=c99 (issue #506)
authorSebastian Pipping <sebastian@pipping.org>
Sat, 12 Mar 2016 01:41:00 +0000 (02:41 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Sat, 12 Mar 2016 01:41:00 +0000 (02:41 +0100)
expat/xmlwf/unixfilemap.c

index 93adce32e8268993014ba2413babcd7c922c0749..e13299da05fca5c70e470246d1468c67f3aa84ca 100755 (executable)
@@ -51,7 +51,7 @@ filemap(const char *name,
     close(fd);
     return 1;
   }
-  p = (void *)mmap((caddr_t)0, (size_t)nbytes, PROT_READ,
+  p = (void *)mmap((void *)0, (size_t)nbytes, PROT_READ,
                    MAP_FILE|MAP_PRIVATE, fd, (off_t)0);
   if (p == (void *)-1) {
     perror(name);
@@ -59,7 +59,7 @@ filemap(const char *name,
     return 0;
   }
   processor(p, nbytes, name, arg);
-  munmap((caddr_t)p, nbytes);
+  munmap((void *)p, nbytes);
   close(fd);
   return 1;
 }