mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
lxd_domain: Require that VIR_LXC_DOMAIN_NAMESPACE_SOURCE_NONE is zero
Our parser code relies on the fact that VIR_LXC_DOMAIN_NAMESPACE_SOURCE_NONE has value of zero and thus uses g_new0(). But strictly speaking, this is not mandated by the enum typedef. Fix that. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
parent
fe983e4c50
commit
64edf25c35
@ -35,7 +35,7 @@ typedef enum {
|
||||
} virLXCDomainNamespace;
|
||||
|
||||
typedef enum {
|
||||
VIR_LXC_DOMAIN_NAMESPACE_SOURCE_NONE,
|
||||
VIR_LXC_DOMAIN_NAMESPACE_SOURCE_NONE = 0,
|
||||
VIR_LXC_DOMAIN_NAMESPACE_SOURCE_NAME,
|
||||
VIR_LXC_DOMAIN_NAMESPACE_SOURCE_PID,
|
||||
VIR_LXC_DOMAIN_NAMESPACE_SOURCE_NETNS,
|
||||
|
Loading…
x
Reference in New Issue
Block a user