diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2024-12-16 19:40:05 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2025-01-08 07:14:39 +0300 |
commit | f07586160fd5492f8d48e7667e7a5d8797aa5090 (patch) | |
tree | dfed8532b8d6f878f9e94e24a9d03e40d7e70c48 /security/selinux/ss/ebitmap.h | |
parent | 83e7e18eed6e06cd1ce82fa4b9c9a05c24f7a80b (diff) | |
download | linux-f07586160fd5492f8d48e7667e7a5d8797aa5090.tar.xz |
selinux: use known type instead of void pointer
Improve type safety and readability by using the known type.
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/ss/ebitmap.h')
-rw-r--r-- | security/selinux/ss/ebitmap.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/security/selinux/ss/ebitmap.h b/security/selinux/ss/ebitmap.h index 49eb33de87e0..c9569998f287 100644 --- a/security/selinux/ss/ebitmap.h +++ b/security/selinux/ss/ebitmap.h @@ -129,8 +129,9 @@ int ebitmap_contains(const struct ebitmap *e1, const struct ebitmap *e2, int ebitmap_get_bit(const struct ebitmap *e, u32 bit); int ebitmap_set_bit(struct ebitmap *e, u32 bit, int value); void ebitmap_destroy(struct ebitmap *e); -int ebitmap_read(struct ebitmap *e, void *fp); -int ebitmap_write(const struct ebitmap *e, void *fp); +struct policy_file; +int ebitmap_read(struct ebitmap *e, struct policy_file *fp); +int ebitmap_write(const struct ebitmap *e, struct policy_file *fp); u32 ebitmap_hash(const struct ebitmap *e, u32 hash); #ifdef CONFIG_NETLABEL |