Use side_ptr_t for dynamic arguments
[libside.git] / tests / unit / test.c
index 53580a126cf613c6583ec61f15b4a75558215d95..7c2e2f92f8e4e4396d3d2d6f46f9646ad3aee6cd 100644 (file)
@@ -628,10 +628,9 @@ enum side_visitor_status test_dynamic_struct_visitor(const struct side_tracer_dy
        uint32_t length = ctx->length, i;
 
        for (i = 0; i < length; i++) {
-               struct side_arg_dynamic_field dynamic_field = {
-                       .field_name = ctx->ptr[i].name,
-                       .elem = side_arg_dynamic_u32(ctx->ptr[i].value),
-               };
+               struct side_arg_dynamic_field dynamic_field =
+                       side_arg_dynamic_field(ctx->ptr[i].name,
+                               side_arg_dynamic_u32(ctx->ptr[i].value));
                if (tracer_ctx->write_field(tracer_ctx, &dynamic_field) != SIDE_VISITOR_STATUS_OK)
                        return SIDE_VISITOR_STATUS_ERROR;
        }
This page took 0.023103 seconds and 4 git commands to generate.