From 0f8dea6a7f25b7f625562e329ddd7d2765868122 Mon Sep 17 00:00:00 2001 From: rwatson Date: Tue, 12 Apr 2005 23:54:34 +0000 Subject: [PATCH] Consistently style function declarations in kern_malloc.c. MFC after: 3 days --- sys/kern/kern_malloc.c | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c index a972854a676b..db50813eca3e 100644 --- a/sys/kern/kern_malloc.c +++ b/sys/kern/kern_malloc.c @@ -243,10 +243,7 @@ malloc_type_freed(struct malloc_type *ksp, unsigned long size) * the allocation fails. */ void * -malloc(size, type, flags) - unsigned long size; - struct malloc_type *type; - int flags; +malloc(unsigned long size, struct malloc_type *type, int flags) { int indx; caddr_t va; @@ -337,9 +334,7 @@ malloc(size, type, flags) * This routine may not block. */ void -free(addr, type) - void *addr; - struct malloc_type *type; +free(void *addr, struct malloc_type *type) { uma_slab_t slab; u_long size; @@ -400,11 +395,7 @@ free(addr, type) * realloc: change the size of a memory block */ void * -realloc(addr, size, type, flags) - void *addr; - unsigned long size; - struct malloc_type *type; - int flags; +realloc(void *addr, unsigned long size, struct malloc_type *type, int flags) { uma_slab_t slab; unsigned long alloc; @@ -457,11 +448,7 @@ if (type == M_SUBPROC) { * reallocf: same as realloc() but free memory on failure. */ void * -reallocf(addr, size, type, flags) - void *addr; - unsigned long size; - struct malloc_type *type; - int flags; +reallocf(void *addr, unsigned long size, struct malloc_type *type, int flags) { void *mem; @@ -475,8 +462,7 @@ reallocf(addr, size, type, flags) */ /* ARGSUSED*/ static void -kmeminit(dummy) - void *dummy; +kmeminit(void *dummy) { u_int8_t indx; u_long mem_size; @@ -576,8 +562,7 @@ kmeminit(dummy) } void -malloc_init(data) - void *data; +malloc_init(void *data) { struct malloc_type *type = (struct malloc_type *)data; @@ -598,8 +583,7 @@ malloc_init(data) } void -malloc_uninit(data) - void *data; +malloc_uninit(void *data) { struct malloc_type *type = (struct malloc_type *)data; struct malloc_type *t;