]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: combine bools in virNetDevTapCreateInBridgePort into flags
authorLaine Stump <laine@laine.org>
Thu, 1 Mar 2012 20:35:30 +0000 (15:35 -0500)
committerLaine Stump <laine@laine.org>
Fri, 2 Mar 2012 21:04:06 +0000 (16:04 -0500)
commitd1c310231dd0c4cea989cc5e35a9911b38f7cacf
tree69b3ab28185c631f13c96de1e91e9f6359a23de2
parentc1b164d70c738b0d7de530417f49a142680fe294
util: combine bools in virNetDevTapCreateInBridgePort into flags

With an additional new bool added to determine whether or not to
discourage the use of the supplied MAC address by the bridge itself,
virNetDevTapCreateInBridgePort had three booleans (well, 2 bools and
an int used as a bool) in the arg list, which made it increasingly
difficult to follow what was going on. This patch combines those three
into a single flags arg, which not only shortens the arg list, but
makes it more self-documenting.
src/network/bridge_driver.c
src/qemu/qemu_command.c
src/uml/uml_conf.c
src/util/virnetdevtap.c
src/util/virnetdevtap.h