]> xenbits.xensource.com Git - libvirt.git/commit
virfirewalltest: Shuffle the code around to remove a loop
authorPeter Krempa <pkrempa@redhat.com>
Fri, 5 Feb 2021 14:45:52 +0000 (15:45 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 11 Feb 2021 16:05:33 +0000 (17:05 +0100)
commiteed50d403cf7f98f34f22343fb4a355eecae1a9b
tree9045bc42ad5b5a24a9debf71c9a291c4a34f5d04
parent4a338253142b17bfa16aef6da796461114bcabd3
virfirewalltest: Shuffle the code around to remove a loop

We are already looping over the arguments to construct the list, so we
can add them to fwBuf right away rather than in an extra loop if we move
some of the 'fwBuf' parts earlier and merge the two loops.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/virfirewalltest.c