mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
virsh-network: Drop unused variables in cmdNetworkMetadata()
In one of recent commits two variable were introduced (@ctxt and @doc) that are not used. This breaks a build with clang who's able to identify that. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
275d1520a4
commit
5912de7189
@ -597,7 +597,6 @@ static bool
|
||||
cmdNetworkMetadata(vshControl *ctl, const vshCmd *cmd)
|
||||
{
|
||||
g_autoptr(virshNetwork) net = NULL;
|
||||
g_autoptr(xmlXPathContext) ctxt = NULL;
|
||||
bool config = vshCommandOptBool(cmd, "config");
|
||||
bool live = vshCommandOptBool(cmd, "live");
|
||||
bool current = vshCommandOptBool(cmd, "current");
|
||||
@ -661,7 +660,7 @@ cmdNetworkMetadata(vshControl *ctl, const vshCmd *cmd)
|
||||
vshPrintExtra(ctl, "%s\n", _("Metadata modified"));
|
||||
} else {
|
||||
g_autofree char *data = NULL;
|
||||
g_autoptr(xmlDoc) doc = NULL;
|
||||
|
||||
/* get */
|
||||
if (!(data = virNetworkGetMetadata(net, VIR_NETWORK_METADATA_ELEMENT,
|
||||
uri, flags)))
|
||||
|
Loading…
Reference in New Issue
Block a user