blob: 99191745661e4f2913adf2abdee954c33c6379b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ad,v 1.1.1.1 2001/03/19 19:35:52 wiz Exp $
--- common/modfile.cpp.orig Sun Jan 28 11:06:47 2001
+++ common/modfile.cpp Sun Jan 28 11:07:29 2001
@@ -79,7 +79,7 @@
return -1;
}
- Mod->ptr = mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, Mod->fd, 0);
+ Mod->ptr = (char *)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, Mod->fd, 0);
if ((int) *Mod->ptr == -1) {
Mod->ptr = NULL;
close(Mod->fd);
|