summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe/rf_debugMem.c
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2003-12-30 21:59:03 +0000
committeroster <oster@NetBSD.org>2003-12-30 21:59:03 +0000
commitc43fc67d7d55d1b19bc76f8ca37f7cbf8643787a (patch)
tree51cfd1fa23f4f7295017077af1e080cabc44d361 /sys/dev/raidframe/rf_debugMem.c
parent9f96807631fac86f7b95a1db6737736633168cd8 (diff)
Some days you wonder if some of the function declaration consistency
was just an accident in the first place. Cleanup function decls and a few comments. [ok.. so I wasn't going to fix this many.. but once you're on a roll....]
Diffstat (limited to 'sys/dev/raidframe/rf_debugMem.c')
-rw-r--r--sys/dev/raidframe/rf_debugMem.c25
1 files changed, 7 insertions, 18 deletions
diff --git a/sys/dev/raidframe/rf_debugMem.c b/sys/dev/raidframe/rf_debugMem.c
index 388dc82444a..0635abd63ce 100644
--- a/sys/dev/raidframe/rf_debugMem.c
+++ b/sys/dev/raidframe/rf_debugMem.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_debugMem.c,v 1.13 2003/12/29 05:22:16 oster Exp $ */
+/* $NetBSD: rf_debugMem.c,v 1.14 2003/12/30 21:59:03 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_debugMem.c,v 1.13 2003/12/29 05:22:16 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_debugMem.c,v 1.14 2003/12/30 21:59:03 oster Exp $");
#include <dev/raidframe/raidframevar.h>
@@ -64,10 +64,7 @@ static void memory_hash_insert(void *addr, int size, int line, char *filen);
static int memory_hash_remove(void *addr, int sz);
void
-rf_record_malloc(p, size, line, filen)
- void *p;
- int size, line;
- char *filen;
+rf_record_malloc(void *p, int size, int line, char *filen)
{
RF_ASSERT(size != 0);
@@ -81,9 +78,7 @@ rf_record_malloc(p, size, line, filen)
}
void
-rf_unrecord_malloc(p, sz)
- void *p;
- int sz;
+rf_unrecord_malloc(void *p, int sz)
{
int size;
@@ -120,8 +115,7 @@ rf_print_unfreed()
#endif /* RF_DEBUG_MEM */
int
-rf_ConfigureDebugMem(listp)
- RF_ShutdownList_t **listp;
+rf_ConfigureDebugMem(RF_ShutdownList_t **listp)
{
#if RF_DEBUG_MEM
int i, rc;
@@ -141,10 +135,7 @@ rf_ConfigureDebugMem(listp)
#define HASHADDR(_a_) ( (((unsigned long) _a_)>>3) % RF_MH_TABLESIZE )
static void
-memory_hash_insert(addr, size, line, filen)
- void *addr;
- int size, line;
- char *filen;
+memory_hash_insert(void *addr, int size, int line, char *filen)
{
unsigned long bucket = HASHADDR(addr);
struct mh_struct *p;
@@ -173,9 +164,7 @@ memory_hash_insert(addr, size, line, filen)
}
static int
-memory_hash_remove(addr, sz)
- void *addr;
- int sz;
+memory_hash_remove(void *addr, int sz)
{
unsigned long bucket = HASHADDR(addr);
struct mh_struct *p;