summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_malloc.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2005-04-12 23:54:34 +0000
committerrwatson <rwatson@FreeBSD.org>2005-04-12 23:54:34 +0000
commit005d2e3810de917702bd1917eacb1b6c71d83651 (patch)
treee3afd8aa19650e2f0ca308f371597867799058ae /sys/kern/kern_malloc.c
parentd3c068087208f4a869356bf6d16b3c007ce08d7d (diff)
downloadFreeBSD-src-005d2e3810de917702bd1917eacb1b6c71d83651.zip
FreeBSD-src-005d2e3810de917702bd1917eacb1b6c71d83651.tar.gz
Consistently style function declarations in kern_malloc.c.
MFC after: 3 days
Diffstat (limited to 'sys/kern/kern_malloc.c')
-rw-r--r--sys/kern/kern_malloc.c30
1 files changed, 7 insertions, 23 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index a972854..db50813 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;
OpenPOWER on IntegriCloud