summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-08-01 17:32:01 +0000
committerrwatson <rwatson@FreeBSD.org>2002-08-01 17:32:01 +0000
commitc429949b89ab52f316f9eb2ae375013c3ea23c66 (patch)
treed78aa8e1fe154018024839eb32dd86c7c2142d6d
parentb7cdf5f4bed19ecc345a80394d8e4729efa80dd4 (diff)
downloadFreeBSD-src-c429949b89ab52f316f9eb2ae375013c3ea23c66.zip
FreeBSD-src-c429949b89ab52f316f9eb2ae375013c3ea23c66.tar.gz
Change macop_t to const, use macop_t in MAC policy entry point definition
structure. This prevents a boatload of warnings in the MAC modules, so we can hook them up to the build. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
-rw-r--r--sys/security/mac/mac_policy.h4
-rw-r--r--sys/sys/mac_policy.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/security/mac/mac_policy.h b/sys/security/mac/mac_policy.h
index 71b2509..d2d8833 100644
--- a/sys/security/mac/mac_policy.h
+++ b/sys/security/mac/mac_policy.h
@@ -326,7 +326,7 @@ struct mac_policy_ops {
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 @@ enum mac_op_constant {
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 {
diff --git a/sys/sys/mac_policy.h b/sys/sys/mac_policy.h
index 71b2509..d2d8833 100644
--- a/sys/sys/mac_policy.h
+++ b/sys/sys/mac_policy.h
@@ -326,7 +326,7 @@ struct mac_policy_ops {
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 @@ enum mac_op_constant {
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 {
OpenPOWER on IntegriCloud