node_device: fix libvirt build if WITH_HAL is defined

commit ffc40b63b5 changed uniond _virNodeDevCapData into a typedef
named virNodeDevCapData with a struct that contains the union as well
as a type enum. This change necessitated changing every reference to
"caps->type" into "caps->data.type", but the author of that patch
failed to test a build "WITH_HAL". This patch fixes the one place in
the hal backend that needed changing.
This commit is contained in:
Maxim Nestratov 2015-05-21 20:23:56 +03:00 committed by Laine Stump
parent 85128e2962
commit b903b3b01e

View File

@ -372,7 +372,7 @@ gather_capability(LibHalContext *ctx, const char *udi,
virNodeDevCapsDefPtr caps; virNodeDevCapsDefPtr caps;
if (VIR_ALLOC(caps) < 0) if (VIR_ALLOC(caps) < 0)
return ENOMEM; return ENOMEM;
caps->type = entry->type; caps->data.type = entry->type;
if (entry->gather_fn) { if (entry->gather_fn) {
int rv = (*entry->gather_fn)(ctx, udi, &caps->data); int rv = (*entry->gather_fn)(ctx, udi, &caps->data);
if (rv != 0) { if (rv != 0) {