Consistently style function declarations in kern_malloc.c.
MFC after: 3 days
This commit is contained in:
parent
cfc25da207
commit
0f8dea6a7f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user