From b5ee516575b4d2f1fd7de014230fee7cf8b6b538 Mon Sep 17 00:00:00 2001 From: rsc Date: Mon, 17 Jul 2006 01:52:13 +0000 Subject: add uint and standardize on typedefs instead of unsigned --- kalloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kalloc.c') diff --git a/kalloc.c b/kalloc.c index d016090..0b22c91 100644 --- a/kalloc.c +++ b/kalloc.c @@ -34,11 +34,11 @@ void kinit(void) { extern int end; - unsigned mem; + uint mem; char *start; start = (char *) &end; - start = (char *) (((unsigned)start + PAGE) & ~(PAGE-1)); + start = (char *) (((uint)start + PAGE) & ~(PAGE-1)); mem = 256; // XXX cprintf("mem = %d\n", mem * PAGE); kfree(start, mem * PAGE); -- cgit v1.2.3