As INVARIANTS isn't supported for code that loads only as a kernel

module and is not linked into the base system, two KASSERT's rotted.
Fix them by fixing variable names.  It would be really nice if
opt_global.h was used when building modules as part of a buildkernel.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
This commit is contained in:
Robert Watson 2002-09-21 18:29:37 +00:00
parent d7ee442578
commit 728fbeea52
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103750
2 changed files with 4 additions and 4 deletions

View File

@ -197,9 +197,9 @@ static int
mac_biba_single_in_range(struct mac_biba *single, struct mac_biba *range)
{
KASSERT((single->mb_flag & MAC_BIBA_FLAG_SINGLE) != 0,
KASSERT((single->mb_flags & MAC_BIBA_FLAG_SINGLE) != 0,
("mac_biba_single_in_range: a not single"));
KASSERT((range->mb_flag & MAC_BIBA_FLAG_RANGE) != 0,
KASSERT((range->mb_flags & MAC_BIBA_FLAG_RANGE) != 0,
("mac_biba_single_in_range: b not range"));
return (mac_biba_dominate_element(&range->mb_rangehigh,

View File

@ -186,9 +186,9 @@ static int
mac_mls_single_in_range(struct mac_mls *single, struct mac_mls *range)
{
KASSERT((single->mm_flag & MAC_MLS_FLAG_SINGLE) != 0,
KASSERT((single->mm_flags & MAC_MLS_FLAG_SINGLE) != 0,
("mac_mls_single_in_range: a not single"));
KASSERT((range->mm_flag & MAC_MLS_FLAG_RANGE) != 0,
KASSERT((range->mm_flags & MAC_MLS_FLAG_RANGE) != 0,
("mac_mls_single_in_range: b not range"));
return (mac_mls_dominate_element(&range->mm_rangehigh,