]> git.ipfire.org Git - thirdparty/git.git/commit
trace2: use designated initializers for "struct tr2_tgt"
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 24 Feb 2022 09:32:59 +0000 (10:32 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 Feb 2022 23:58:31 +0000 (15:58 -0800)
commit98593057d0caee3432d170f4b895ef7bcf27fbd0
tree379ab523da39da8e6dd61cfc5c8a7a4b2ba46021
parent518f7059a82cbf08080ee385d91e557df53a1560
trace2: use designated initializers for "struct tr2_tgt"

As with the preceding commit, change another set of file-level struct
assignments to use designated initializers.

As before the "= NULL" assignments are redundant, but we're keeping
them for self-documentation purposes. The comments left to explain the
pre-image can now be removed in favor of working code that relays the
same information to the reader.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
trace2/tr2_tgt_event.c
trace2/tr2_tgt_normal.c
trace2/tr2_tgt_perf.c