]> xenbits.xensource.com Git - libvirt.git/commit
bridge_driver: Don't access global driver randomly
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 12 Mar 2015 12:42:46 +0000 (13:42 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 13 Mar 2015 14:55:56 +0000 (15:55 +0100)
commit1009a61ecb6d7df681bcf785dd86b1189b5deb40
tree151911b15292441c7227b6d1762ad471f23d2233
parent22fd3ac38f4b07ae76e2f8874c4531c00f0e3131
bridge_driver: Don't access global driver randomly

Well, network driver code has the driver accessible as a global
variable. This makes any rework hard, as it's unclear where the
variable is accessed and/or modified. Lets just pass the driver
as a parameter to all functions where needed.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/network/bridge_driver.c