From 417f97c9540955203ddb9f96bb955f3deb0ea694 Mon Sep 17 00:00:00 2001 From: Greg Lehey Date: Sun, 2 May 1999 07:59:04 +0000 Subject: Get extern declarations right. Change DEBUG_EXITFREE to DEBUG_WARNINGS. --- sys/dev/vinum/vinum.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/vinum/vinum.c b/sys/dev/vinum/vinum.c index 86c8fc0efd9e..455b8be38883 100644 --- a/sys/dev/vinum/vinum.c +++ b/sys/dev/vinum/vinum.c @@ -33,7 +33,7 @@ * otherwise) arising in any way out of the use of this software, even if * advised of the possibility of such damage. * - * $Id: vinum.c,v 1.17 1999/04/17 04:15:50 grog Exp $ + * $Id: vinum.c,v 1.24 1999/03/19 05:35:25 grog Exp grog $ */ #define STATIC static /* nothing while we're testing XXX */ @@ -45,7 +45,7 @@ #ifdef VINUMDEBUG #include int debug = 0; -extern total_malloced; +extern int total_malloced; extern int malloccount; extern struct mc malloced[]; #endif @@ -218,7 +218,7 @@ vinum_modevent(module_t mod, modeventtype_t type, void *unused) #endif for (i = 0; i < malloccount; i++) { - if (debug & DEBUG_EXITFREE) /* want to hear about them */ + if (debug & DEBUG_WARNINGS) /* want to hear about them */ log(LOG_WARNING, "vinum: exiting with %d bytes malloced from %s:%d\n", malloced[i].size, @@ -347,7 +347,7 @@ vinumopen(dev_t dev, return ENODEV; /* don't know what to do with these */ case VINUM_SUPERDEV_TYPE: - error = suser(p); /* are we root? */ + error = suser(p); /* are we root? */ if (error == 0) { /* yes, can do */ if (dev == VINUM_DAEMON_DEV) /* daemon device */ vinum_conf.flags |= VF_DAEMONOPEN; /* we're open */ -- cgit v1.3