summaryrefslogtreecommitdiff
path: root/xmlwf/unixfilemap.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2016-06-29 06:24:30 +0000
committerXin LI <delphij@FreeBSD.org>2016-06-29 06:24:30 +0000
commit17c9c52d9a57f24fdf6202e339e7a713e97d27bb (patch)
treef63ef1797f238d1275928c37bf77874f8721a7f5 /xmlwf/unixfilemap.c
parent36e3acbc34f6b954a1142555e58a3f1690829677 (diff)
Notes
Diffstat (limited to 'xmlwf/unixfilemap.c')
-rwxr-xr-xxmlwf/unixfilemap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmlwf/unixfilemap.c b/xmlwf/unixfilemap.c
index 93adce32e826..e13299da05fc 100755
--- a/xmlwf/unixfilemap.c
+++ b/xmlwf/unixfilemap.c
@@ -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;
}