diff options
author | rwatson <rwatson@FreeBSD.org> | 2002-08-01 17:32:01 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2002-08-01 17:32:01 +0000 |
commit | c429949b89ab52f316f9eb2ae375013c3ea23c66 (patch) | |
tree | d78aa8e1fe154018024839eb32dd86c7c2142d6d | |
parent | b7cdf5f4bed19ecc345a80394d8e4729efa80dd4 (diff) | |
download | FreeBSD-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.h | 4 | ||||
-rw-r--r-- | sys/sys/mac_policy.h | 4 |
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 { |