From owner-p4-projects Thu Sep 12 19: 2:31 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id A56A337B401; Thu, 12 Sep 2002 19:02:25 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 48B8D37B400 for ; Thu, 12 Sep 2002 19:02:25 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 030A143E65 for ; Thu, 12 Sep 2002 19:02:25 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g8D22OJU055627 for ; Thu, 12 Sep 2002 19:02:24 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g8D22OiC055614 for perforce@freebsd.org; Thu, 12 Sep 2002 19:02:24 -0700 (PDT) Date: Thu, 12 Sep 2002 19:02:24 -0700 (PDT) Message-Id: <200209130202.g8D22OiC055614@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson Subject: PERFORCE change 17427 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=17427 Change 17427 by rwatson@rwatson_paprika on 2002/09/12 19:01:24 Warning fixes due to parens positioning in assignments. Affected files ... .. //depot/projects/trustedbsd/mac/sys/security/mac_biba/mac_biba.c#104 edit .. //depot/projects/trustedbsd/mac/sys/security/mac_mls/mac_mls.c#86 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/security/mac_biba/mac_biba.c#104 (text+ko) ==== @@ -274,8 +274,8 @@ mac_biba_subject_equal_ok(struct mac_biba *mac_biba) { - KASSERT((mac_biba->mb_flags & MAC_BIBA_FLAGS_BOTH == - MAC_BIBA_FLAGS_BOTH), + KASSERT((mac_biba->mb_flags & MAC_BIBA_FLAGS_BOTH) == + MAC_BIBA_FLAGS_BOTH, ("mac_biba_subject_equal_ok: subject doesn't have both labels")); /* If the single is EQUAL, it's ok */ ==== //depot/projects/trustedbsd/mac/sys/security/mac_mls/mac_mls.c#86 (text+ko) ==== @@ -264,7 +264,7 @@ mac_mls_subject_equal_ok(struct mac_mls *mac_mls) { - KASSERT((mac_mls->mm_flags & MAC_MLS_FLAGS_BOTH == MAC_MLS_FLAGS_BOTH), + KASSERT((mac_mls->mm_flags & MAC_MLS_FLAGS_BOTH) == MAC_MLS_FLAGS_BOTH, ("mac_mls_subject_equal_ok: subject doesn't have both labels")); /* If the single is EQUAL, it's ok. */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message