side_arg_{static,dynamic} should be unions
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 16 Sep 2023 10:55:23 +0000 (12:55 +0200)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 16 Sep 2023 10:55:23 +0000 (12:55 +0200)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/side/trace.h

index e341047af5a14fcf9d8ec4194d779d8e4867edb5..90b35407acae956d190681a7f9bdab79f6e854c5 100644 (file)
@@ -72,7 +72,7 @@
 
 struct side_arg;
 struct side_arg_vec;
-struct side_arg_dynamic;
+union side_arg_dynamic;
 struct side_arg_dynamic_field;
 struct side_arg_dynamic_vla;
 struct side_type;
@@ -520,7 +520,7 @@ struct side_callback {
        void *priv;
 } SIDE_PACKED;
 
-struct side_arg_static {
+union side_arg_static {
        /* Stack-copy basic types */
        union side_bool_value bool_value;
        uint8_t byte_value;
@@ -579,7 +579,7 @@ struct side_dynamic_vla_visitor {
        uint32_t nr_attr;
 } SIDE_PACKED;
 
-struct side_arg_dynamic {
+union side_arg_dynamic {
        /* Dynamic basic types */
        struct side_type_null side_null;
        struct {
@@ -614,8 +614,8 @@ struct side_arg_dynamic {
 struct side_arg {
        uint32_t type;  /* enum side_type_label */
        union {
-               struct side_arg_static side_static;
-               struct side_arg_dynamic side_dynamic;
+               union side_arg_static side_static;
+               union side_arg_dynamic side_dynamic;
        } SIDE_PACKED u;
 } SIDE_PACKED;
 
This page took 0.029398 seconds and 4 git commands to generate.