Get extern declarations right.
Change DEBUG_EXITFREE to DEBUG_WARNINGS.
This commit is contained in:
parent
a2d8e114f4
commit
417f97c954
@ -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 <sys/reboot.h>
|
||||
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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user