summaryrefslogtreecommitdiff
path: root/commit-slab.h
diff options
context:
space:
mode:
authorLibravatar Ævar Arnfjörð Bjarmason <avarab@gmail.com>2021-09-27 14:58:41 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-09-27 15:02:32 -0700
commit6e54a32468e209aa724b37496fcc63f4ebe84f60 (patch)
tree8820ae3a54e35f24c0a59c9ad6184af591414e77 /commit-slab.h
parentMerge branch 'ab/designated-initializers' into ab/designated-initializers-more (diff)
downloadtgif-6e54a32468e209aa724b37496fcc63f4ebe84f60.tar.xz
daemon.c: refactor hostinfo_init() to HOSTINFO_INIT macro
Remove the hostinfo_init() function added in 01cec54e135 (daemon: deglobalize hostname information, 2015-03-07) and instead initialize the "struct hostinfo" with a macro. This is the more idiomatic pattern in the codebase, and doesn't leave us wondering when we see the *_init() function if this struct needs more complex initialization than a macro can provide. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-slab.h')
0 files changed, 0 insertions, 0 deletions