mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
util: remove currentBackend from virfirewall.c
Since the currentBackend (direct vs. firewalld) setting is no longer used for anything, we don't need to set it (either explicitly from tests, or implicitly during init), and can completely remove it. Signed-off-by: Laine Stump <laine@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
@@ -31,9 +31,7 @@
|
||||
# include "network/bridge_driver_platform.h"
|
||||
# include "virbuffer.h"
|
||||
# include "virmock.h"
|
||||
|
||||
# define LIBVIRT_VIRFIREWALLPRIV_H_ALLOW
|
||||
# include "virfirewallpriv.h"
|
||||
# include "virfirewall.h"
|
||||
|
||||
# define LIBVIRT_VIRCOMMANDPRIV_H_ALLOW
|
||||
# include "vircommandpriv.h"
|
||||
@@ -167,10 +165,6 @@ mymain(void)
|
||||
ret = -1; \
|
||||
} while (0)
|
||||
|
||||
if (virFirewallSetBackend(VIR_FIREWALL_BACKEND_DIRECT) < 0) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
basefile = g_strdup_printf("%s/networkxml2firewalldata/base.args", abs_srcdir);
|
||||
|
||||
if (virFileReadAll(basefile, INT_MAX, &baseargs) < 0)
|
||||
|
||||
Reference in New Issue
Block a user