ctdb: Introduce a helper variable in run_event_test.c
authorVolker Lendecke <vl@samba.org>
Tue, 18 May 2021 06:18:25 +0000 (08:18 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 25 May 2021 08:09:12 +0000 (08:09 +0000)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=14475
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit 07ab9b7a71d59f3ff2b9dee662632315062213ab)

ctdb/tests/src/run_event_test.c

index 398ab2a0df0f4f10006a5ee6d4cb20ba39053e3f..61c4ecc30f93408629c168bd1df4a8e6eb404d64 100644 (file)
@@ -114,8 +114,8 @@ static void do_run(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
        printf("Event %s completed with result=%d\n",
               argv[4], script_list->summary);
        for (i=0; i<script_list->num_scripts; i++) {
-               printf("%s result=%d\n", script_list->script[i].name,
-                      script_list->script[i].summary);
+               struct run_event_script *s = &script_list->script[i];
+               printf("%s result=%d\n", s->name, s->summary);
        }
 }