mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-05 21:01:13 +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)
|
cmdNetworkMetadata(vshControl *ctl, const vshCmd *cmd)
|
||||||
{
|
{
|
||||||
g_autoptr(virshNetwork) net = NULL;
|
g_autoptr(virshNetwork) net = NULL;
|
||||||
g_autoptr(xmlXPathContext) ctxt = NULL;
|
|
||||||
bool config = vshCommandOptBool(cmd, "config");
|
bool config = vshCommandOptBool(cmd, "config");
|
||||||
bool live = vshCommandOptBool(cmd, "live");
|
bool live = vshCommandOptBool(cmd, "live");
|
||||||
bool current = vshCommandOptBool(cmd, "current");
|
bool current = vshCommandOptBool(cmd, "current");
|
||||||
@ -661,7 +660,7 @@ cmdNetworkMetadata(vshControl *ctl, const vshCmd *cmd)
|
|||||||
vshPrintExtra(ctl, "%s\n", _("Metadata modified"));
|
vshPrintExtra(ctl, "%s\n", _("Metadata modified"));
|
||||||
} else {
|
} else {
|
||||||
g_autofree char *data = NULL;
|
g_autofree char *data = NULL;
|
||||||
g_autoptr(xmlDoc) doc = NULL;
|
|
||||||
/* get */
|
/* get */
|
||||||
if (!(data = virNetworkGetMetadata(net, VIR_NETWORK_METADATA_ELEMENT,
|
if (!(data = virNetworkGetMetadata(net, VIR_NETWORK_METADATA_ELEMENT,
|
||||||
uri, flags)))
|
uri, flags)))
|
||||||
|
Loading…
Reference in New Issue
Block a user