]> git.ipfire.org Git - thirdparty/libvirt.git/commit
network: Initialize variables in networkDnsmasqConfContents()
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 9 Dec 2021 15:33:08 +0000 (16:33 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 1 Jun 2022 07:40:07 +0000 (09:40 +0200)
commit314dac422d9323e9bf8159cd63e7075eb6bba824
treefc289669d6d0a7c976a43295208ba10f765e7ed4
parentf3440055471058698042df06312b9dbdc75e1f4f
network: Initialize variables in networkDnsmasqConfContents()

In networkDnsmasqConfContents() there's a for() loop which
initializes some variables in its initialization block. This
makes both the loop() statement and variable declaration block
look needlessly ugly. Speaking of variable declaration, also move
some variables which are used only within blocks into their
respective blocks.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/network/bridge_driver.c