From owner-p4-projects Sat Jun 29 13:27:17 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 5EB4D37B408; Sat, 29 Jun 2002 13:27:07 -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 A493737B406 for ; Sat, 29 Jun 2002 13:27:06 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B5BA43E09 for ; Sat, 29 Jun 2002 13:27:06 -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 g5TKR6JU075124 for ; Sat, 29 Jun 2002 13:27:06 -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 g5TKR5HB075121 for perforce@freebsd.org; Sat, 29 Jun 2002 13:27:05 -0700 (PDT) Date: Sat, 29 Jun 2002 13:27:05 -0700 (PDT) Message-Id: <200206292027.g5TKR5HB075121@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 13617 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=13617 Change 13617 by rwatson@rwatson_tislabs on 2002/06/29 13:26:29 Fix var args handling in a macro, ## is not needed and was generating a token warning with the new compiler. Affected files ... .. //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#155 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#155 (text+ko) ==== @@ -175,7 +175,7 @@ LIST_FOREACH(mpc, &mac_policy_list, mpc_list) { \ if (mpc->mpc_ops.mpo_ ## check != NULL) \ error = error_select( \ - mpc->mpc_ops.mpo_ ## check (## args), \ + mpc->mpc_ops.mpo_ ## check (args), \ error); \ } \ MAC_POLICY_LIST_UNBUSY(); \ @@ -196,7 +196,7 @@ LIST_FOREACH(mpc, &mac_policy_list, mpc_list) { \ if (mpc->mpc_ops.mpo_ ## operation != NULL) \ result = result composition \ - mpc->mpc_ops.mpo_ ## operation ( ## args); \ + mpc->mpc_ops.mpo_ ## operation (args); \ } \ MAC_POLICY_LIST_UNBUSY(); \ } while (0) @@ -211,7 +211,7 @@ MAC_POLICY_LIST_BUSY(); \ LIST_FOREACH(mpc, &mac_policy_list, mpc_list) { \ if (mpc->mpc_ops.mpo_ ## operation != NULL) \ - mpc->mpc_ops.mpo_ ## operation (## args); \ + mpc->mpc_ops.mpo_ ## operation (args); \ } \ MAC_POLICY_LIST_UNBUSY(); \ } while (0) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message