aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authorAlexander Langer <alex@FreeBSD.org>1997-12-31 03:15:06 +0000
committerAlexander Langer <alex@FreeBSD.org>1997-12-31 03:15:06 +0000
commit5a5b9efe704f7f6c9658d0ee97ff7bb9e280b6a8 (patch)
tree0cf5ddb283b41812b2d19f0a3b2a8151111c3b18 /lib/libc/stdlib/malloc.c
parent651bb81717366b381e59b94954fbcd094636bb44 (diff)
downloadsrc-5a5b9efe704f7f6c9658d0ee97ff7bb9e280b6a8.tar.gz
src-5a5b9efe704f7f6c9658d0ee97ff7bb9e280b6a8.zip
Drop the use of caddr_t in conjunction with mmap(2).
Notes
Notes: svn path=/head/; revision=32133
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
-rw-r--r--lib/libc/stdlib/malloc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c
index 176dd40892d5..2fb306eb23d0 100644
--- a/lib/libc/stdlib/malloc.c
+++ b/lib/libc/stdlib/malloc.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id: malloc.c,v 1.32 1997/08/31 05:59:39 phk Exp $
+ * $Id: malloc.c,v 1.33 1997/12/15 02:12:42 jb Exp $
*
*/
@@ -256,7 +256,7 @@ static char *malloc_func;
/* Macro for mmap */
#define MMAP(size) \
- mmap((caddr_t)0, (size), PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, \
+ mmap(0, (size), PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, \
MMAP_FD, 0);
/*
@@ -297,7 +297,7 @@ wrtwarning(char *p)
/*
* Allocate a number of pages from the OS
*/
-static caddr_t
+static void *
map_pages(int pages)
{
caddr_t result, tail;
@@ -370,7 +370,7 @@ extend_pgdir(u_long index)
page_dir = new;
/* Now free the old stuff */
- munmap((caddr_t)old, oldlen);
+ munmap(old, oldlen);
return 1;
}