diff options
author | imp <imp@FreeBSD.org> | 2009-02-03 07:50:41 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2009-02-03 07:50:41 +0000 |
commit | 54f6c3e35c134d0af64be3303f6ffb4703e36b33 (patch) | |
tree | 79ac284674b8c92f5e17d50e8548f63d8724862b /sys/kern/subr_witness.c | |
parent | b033fcf7e92847cf4bbe8015c1dde4942fbfc6f2 (diff) | |
download | FreeBSD-src-54f6c3e35c134d0af64be3303f6ffb4703e36b33.zip FreeBSD-src-54f6c3e35c134d0af64be3303f6ffb4703e36b33.tar.gz |
o Use unsigned for bit fields.
o Use NULL for pointers in preference to 0.
Diffstat (limited to 'sys/kern/subr_witness.c')
-rw-r--r-- | sys/kern/subr_witness.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c index 60ab288..3fba3fb 100644 --- a/sys/kern/subr_witness.c +++ b/sys/kern/subr_witness.c @@ -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, |