From: Volker Lendecke Date: Tue, 18 May 2021 06:18:25 +0000 (+0200) Subject: ctdb: Introduce a helper variable in run_event_test.c X-Git-Tag: tevent-0.11.0~864 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=07ab9b7a71d59f3ff2b9dee662632315062213ab;p=thirdparty%2Fsamba.git ctdb: Introduce a helper variable in run_event_test.c Bug: https://bugzilla.samba.org/show_bug.cgi?id=14475 Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/ctdb/tests/src/run_event_test.c b/ctdb/tests/src/run_event_test.c index 398ab2a0df0..61c4ecc30f9 100644 --- a/ctdb/tests/src/run_event_test.c +++ b/ctdb/tests/src/run_event_test.c @@ -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; inum_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); } }