[dbus PATCH 4/9] connect: Pass error into virtDBusConnectOpen function

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

 



We need to pass the error pointer in order to report proper error.

Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---
 src/connect.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/connect.c b/src/connect.c
index cd90939..fd335e3 100644
--- a/src/connect.c
+++ b/src/connect.c
@@ -342,7 +342,7 @@ virtDBusConnectDomainLookupByID(GVariant *inArgs,
 
     g_variant_get(inArgs, "(u)", &id);
 
-    if (!virtDBusConnectOpen(connect, NULL))
+    if (!virtDBusConnectOpen(connect, error))
         return;
 
     domain = virDomainLookupByID(connect->connection, id);
@@ -370,7 +370,7 @@ virtDBusConnectDomainLookupByName(GVariant *inArgs,
 
     g_variant_get(inArgs, "(s)", &name);
 
-    if (!virtDBusConnectOpen(connect, NULL))
+    if (!virtDBusConnectOpen(connect, error))
         return;
 
     domain = virDomainLookupByName(connect->connection, name);
@@ -398,7 +398,7 @@ virtDBusConnectDomainLookupByUUID(GVariant *inArgs,
 
     g_variant_get(inArgs, "(s)", &uuidstr);
 
-    if (!virtDBusConnectOpen(connect, NULL))
+    if (!virtDBusConnectOpen(connect, error))
         return;
 
     domain = virDomainLookupByUUIDString(connect->connection, uuidstr);
-- 
2.14.3

--
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]

  Powered by Linux