Commit b8eb9b27 authored by Anya Harter's avatar Anya Harter Committed by Katerina Koukiou

connect: fix calls to virtDBusConnectOpen

The function returns TRUE/FALSE, not 0/-1.
Signed-off-by: 's avatarAnya Harter <aharter@redhat.com>
Reviewed-by: 's avatarJán Tomko <jtomko@redhat.com>
parent 87d6d0c8
......@@ -152,7 +152,7 @@ virtDBusDomainGetVirDomain(virtDBusConnect *connect,
{
virDomainPtr domain;
if (virtDBusConnectOpen(connect, error) < 0)
if (!virtDBusConnectOpen(connect, error))
return NULL;
domain = virtDBusUtilVirDomainFromBusPath(connect->connection,
......
......@@ -10,7 +10,7 @@ virtDBusInterfaceGetVirInterface(virtDBusConnect *connect,
{
virInterfacePtr interface;
if (virtDBusConnectOpen(connect, error) < 0)
if (!virtDBusConnectOpen(connect, error))
return NULL;
interface = virtDBusUtilVirInterfaceFromBusPath(connect->connection,
......
......@@ -21,7 +21,7 @@ virtDBusNetworkGetVirNetwork(virtDBusConnect *connect,
{
virNetworkPtr network;
if (virtDBusConnectOpen(connect, error) < 0)
if (!virtDBusConnectOpen(connect, error))
return NULL;
network = virtDBusUtilVirNetworkFromBusPath(connect->connection,
......
......@@ -10,7 +10,7 @@ virtDBusNodeDeviceGetVirNodeDevice(virtDBusConnect *connect,
{
virNodeDevicePtr dev;
if (virtDBusConnectOpen(connect, error) < 0)
if (!virtDBusConnectOpen(connect, error))
return NULL;
dev = virtDBusUtilVirNodeDeviceFromBusPath(connect->connection,
......
......@@ -10,7 +10,7 @@ virtDBusNWFilterGetVirNWFilter(virtDBusConnect *connect,
{
virNWFilterPtr nwfilter;
if (virtDBusConnectOpen(connect, error) < 0)
if (!virtDBusConnectOpen(connect, error))
return NULL;
nwfilter = virtDBusUtilVirNWFilterFromBusPath(connect->connection,
......
......@@ -10,7 +10,7 @@ virtDBusSecretGetVirSecret(virtDBusConnect *connect,
{
virSecretPtr secret;
if (virtDBusConnectOpen(connect, error) < 0)
if (!virtDBusConnectOpen(connect, error))
return NULL;
secret = virtDBusUtilVirSecretFromBusPath(connect->connection,
......
......@@ -10,7 +10,7 @@ virtDBusStoragePoolGetVirStoragePool(virtDBusConnect *connect,
{
virStoragePoolPtr storagePool;
if (virtDBusConnectOpen(connect, error) < 0)
if (!virtDBusConnectOpen(connect, error))
return NULL;
storagePool = virtDBusUtilVirStoragePoolFromBusPath(connect->connection,
......
......@@ -10,7 +10,7 @@ virtDBusStorageVolGetVirStorageVol(virtDBusConnect *connect,
{
virStorageVolPtr storageVol;
if (virtDBusConnectOpen(connect, error) < 0)
if (!virtDBusConnectOpen(connect, error))
return NULL;
storageVol = virtDBusUtilVirStorageVolFromBusPath(connect->connection,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment