diff mbox series

[3/7] Flask: replace uses of __u32

Message ID 868d803c-0a88-4080-99b1-68e6f8b92c25@suse.com (mailing list archive)
State New
Headers show
Series types: replace remaining uses of __u{16,32,64} | expand

Commit Message

Jan Beulich Oct. 9, 2024, 9:23 a.m. UTC
... by uint32_t.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
---
Uses of bool_val look suspicious; I looked at them because by its name
I would have hoped I can switch it to bool instead.

Comments

Daniel P. Smith Oct. 9, 2024, 1:56 p.m. UTC | #1
On 10/9/24 05:23, Jan Beulich wrote:
> ... by uint32_t.
> 
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
> ---
> Uses of bool_val look suspicious; I looked at them because by its name
> I would have hoped I can switch it to bool instead.
> 
> --- a/xen/xsm/flask/ss/conditional.h
> +++ b/xen/xsm/flask/ss/conditional.h
> @@ -29,8 +29,8 @@ struct cond_expr {
>   #define COND_EQ        6 /* bool == bool */
>   #define COND_NEQ    7 /* bool != bool */
>   #define COND_LAST    COND_NEQ
> -    __u32 expr_type;
> -    __u32 bool_val;
> +    uint32_t expr_type;
> +    uint32_t bool_val;
>       struct cond_expr *next;
>   };
>   
> --- a/xen/xsm/flask/ss/policydb.h
> +++ b/xen/xsm/flask/ss/policydb.h
> @@ -131,7 +131,7 @@ struct range_trans {
>   
>   /* Boolean data type */
>   struct cond_bool_datum {
> -    __u32 value;        /* internal type value */
> +    uint32_t value;        /* internal type value */
>       int state;
>   };
>   

Acked-by: Daniel P. Smith <dpsmith@apertussolutions.com>
diff mbox series

Patch

--- a/xen/xsm/flask/ss/conditional.h
+++ b/xen/xsm/flask/ss/conditional.h
@@ -29,8 +29,8 @@  struct cond_expr {
 #define COND_EQ        6 /* bool == bool */
 #define COND_NEQ    7 /* bool != bool */
 #define COND_LAST    COND_NEQ
-    __u32 expr_type;
-    __u32 bool_val;
+    uint32_t expr_type;
+    uint32_t bool_val;
     struct cond_expr *next;
 };
 
--- a/xen/xsm/flask/ss/policydb.h
+++ b/xen/xsm/flask/ss/policydb.h
@@ -131,7 +131,7 @@  struct range_trans {
 
 /* Boolean data type */
 struct cond_bool_datum {
-    __u32 value;        /* internal type value */
+    uint32_t value;        /* internal type value */
     int state;
 };