[libvirt] [PATCH] build fix: fix libvirt build if WITH_HAL is defined

Laine Stump laine at laine.org
Thu May 21 18:26:08 UTC 2015


On 05/21/2015 01:23 PM, Maxim Nestratov wrote:
> ---
>  src/node_device/node_device_hal.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/node_device/node_device_hal.c b/src/node_device/node_device_hal.c
> index 2d3bc17..6d18a87 100644
> --- a/src/node_device/node_device_hal.c
> +++ b/src/node_device/node_device_hal.c
> @@ -372,7 +372,7 @@ gather_capability(LibHalContext *ctx, const char *udi,
>          virNodeDevCapsDefPtr caps;
>          if (VIR_ALLOC(caps) < 0)
>              return ENOMEM;
> -        caps->type = entry->type;
> +        caps->data.type = entry->type;
>          if (entry->gather_fn) {
>              int rv = (*entry->gather_fn)(ctx, udi, &caps->data);
>              if (rv != 0) {

Oops! Sorry about that!

ACK. I just added a bit more description to the log message and pushed.




More information about the libvir-list mailing list