[libvirt-glib] Remove unneeded call in libvirt-gconfig test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Because of a copy and paste error, the test program is making an
unneeded call to gvir_config_domain_channel_set_target_type
when setting up its USB redirection device.
---
 libvirt-gconfig/tests/test-domain-create.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/libvirt-gconfig/tests/test-domain-create.c b/libvirt-gconfig/tests/test-domain-create.c
index 88c887d..4ee33aa 100644
--- a/libvirt-gconfig/tests/test-domain-create.c
+++ b/libvirt-gconfig/tests/test-domain-create.c
@@ -204,8 +204,6 @@ int main(int argc, char **argv)
     redirdev = gvir_config_domain_redirdev_new();
     gvir_config_domain_redirdev_set_bus(redirdev,
                                         GVIR_CONFIG_DOMAIN_REDIRDEV_BUS_USB);
-    gvir_config_domain_channel_set_target_type(channel,
-                                               GVIR_CONFIG_DOMAIN_CHANNEL_TARGET_VIRTIO);
     spicevmc = gvir_config_domain_chardev_source_spicevmc_new();
     gvir_config_domain_chardev_set_source(GVIR_CONFIG_DOMAIN_CHARDEV(redirdev),
                                           GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE(spicevmc));
-- 
1.7.7.6

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


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]