[libvirt] [PATCH] node_device_hal.c: Follow _class -> klass rename

Michal Privoznik posted 1 patch 12 weeks ago
Test syntax-check passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/ed454facd4081aaec32a7f671e1dfa89afd62e34.1552916838.git.mprivozn@redhat.com
src/node_device/node_device_hal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

[libvirt] [PATCH] node_device_hal.c: Follow _class -> klass rename

Posted by Michal Privoznik 12 weeks ago
In 0eca80e60 _class was renamed to klass for variety of struct
members. However, gather_usb_cap() was missed out in this rename
leaving FreeBSD build broken.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
---

Pushed under trivial and build-breker rules.

 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 b77c743305..d1eb6c7851 100644
--- a/src/node_device/node_device_hal.c
+++ b/src/node_device/node_device_hal.c
@@ -171,7 +171,7 @@ gather_usb_cap(LibHalContext *ctx, const char *udi,
     (void)get_int_prop(ctx, udi, "usb.interface.number",
                        (int *)&d->usb_if.number);
     (void)get_int_prop(ctx, udi, "usb.interface.class",
-                       (int *)&d->usb_if._class);
+                       (int *)&d->usb_if.klass);
     (void)get_int_prop(ctx, udi, "usb.interface.subclass",
                        (int *)&d->usb_if.subclass);
     (void)get_int_prop(ctx, udi, "usb.interface.protocol",
-- 
2.19.2

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list