Date: Sat, 29 Jun 2002 13:27:05 -0700 (PDT) From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 13617 for review Message-ID: <200206292027.g5TKR5HB075121@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206292027.g5TKR5HB075121>