From owner-p4-projects Thu Aug 1 9:56:49 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 00A6737B401; Thu, 1 Aug 2002 09:56:43 -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 9AF1837B400 for ; Thu, 1 Aug 2002 09:56:43 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5636543E3B for ; Thu, 1 Aug 2002 09:56:43 -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 g71GuhJU002806 for ; Thu, 1 Aug 2002 09:56:43 -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 g71GuhQO002803 for perforce@freebsd.org; Thu, 1 Aug 2002 09:56:43 -0700 (PDT) Date: Thu, 1 Aug 2002 09:56:43 -0700 (PDT) Message-Id: <200208011656.g71GuhQO002803@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 15389 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=15389 Change 15389 by rwatson@rwatson_paprika on 2002/08/01 09:56:40 Make macop_t explicitly const, and use macop_t in the entry point definition structure. This should eliminate the hundreds of warnings associated with MAC operation vector arrays in modules. Affected files ... .. //depot/projects/trustedbsd/mac/sys/sys/mac_policy.h#104 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/sys/mac_policy.h#104 (text+ko) ==== @@ -326,7 +326,7 @@ struct label *label, int op); }; -typedef void *macop_t; +typedef const void *macop_t; enum mac_op_constant { MAC_OP_LAST, @@ -445,7 +445,7 @@ struct mac_policy_op_entry { enum mac_op_constant mpe_constant; /* what this hook implements */ - void *mpe_function; /* hook's implementation */ + macop_t mpe_function; /* hook's implementation */ }; struct mac_policy_conf { To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message