summaryrefslogtreecommitdiff
path: root/sys/lib/libsa/alloc.c
diff options
context:
space:
mode:
authordsl <dsl@NetBSD.org>2003-02-01 14:57:02 +0000
committerdsl <dsl@NetBSD.org>2003-02-01 14:57:02 +0000
commit2d1837c8fc61e9cdfcb20b8d4d908395c905cd04 (patch)
tree86a88fc327e41a94a184bd1a63f74566c96f34f7 /sys/lib/libsa/alloc.c
parent912fab6ec9a7ac6d31877e71a2f2454808afe7e9 (diff)
KNR, removing ugly 'unsigned' variables.
Probably should be size_t, but now matched prototype. (mainly agreed with christos - he wanted size_t....)
Diffstat (limited to 'sys/lib/libsa/alloc.c')
-rw-r--r--sys/lib/libsa/alloc.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/sys/lib/libsa/alloc.c b/sys/lib/libsa/alloc.c
index 164a326a0d7..e856ebf4bf5 100644
--- a/sys/lib/libsa/alloc.c
+++ b/sys/lib/libsa/alloc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: alloc.c,v 1.15 2000/03/30 12:19:47 augustss Exp $ */
+/* $NetBSD: alloc.c,v 1.16 2003/02/01 14:57:02 dsl Exp $ */
/*
* Copyright (c) 1997 Christopher G. Demetriou. All rights reserved.
@@ -114,8 +114,7 @@ struct fl {
#ifdef HEAP_VARIABLE
static char *top, *heapstart, *heaplimit;
-void setheap(start, limit)
-void *start, *limit;
+void setheap(void *start, void *limit)
{
heapstart = top = start;
heaplimit = limit;
@@ -131,8 +130,7 @@ static char *top = (char*)HEAP_START;
#endif /* HEAP_VARIABLE */
void *
-alloc(size)
- unsigned size;
+alloc(u_int size)
{
struct fl **f = &freelist, **bestf = NULL;
#ifndef ALLOC_FIRST_FIT
@@ -209,9 +207,7 @@ found:
}
void
-free(ptr, size)
- void *ptr;
- unsigned size; /* only for consistence check */
+free(void *ptr, u_int size)
{
struct fl *f =
(struct fl *)((char*)ptr - ALIGN(sizeof(unsigned)));