o Use unsigned for bit fields.

o Use NULL for pointers in preference to 0.
This commit is contained in:
Warner Losh 2009-02-03 07:50:41 +00:00
parent 9483543dfc
commit 8260e3a4c0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=188056

View File

@ -235,8 +235,8 @@ struct witness {
uint16_t w_num_descendants; /* direct/indirect
* descendant count */
int16_t w_ddb_level;
int w_displayed:1;
int w_reversed:1;
unsigned w_displayed:1;
unsigned w_reversed:1;
};
STAILQ_HEAD(witness_list, witness);
@ -376,7 +376,7 @@ static void witness_setflag(struct lock_object *lock, int flag, int set);
#define witness_debugger(c)
#endif
SYSCTL_NODE(_debug, OID_AUTO, witness, CTLFLAG_RW, 0, "Witness Locking");
SYSCTL_NODE(_debug, OID_AUTO, witness, CTLFLAG_RW, NULL, "Witness Locking");
/*
* If set to 0, lock order checking is disabled. If set to -1,