[PATCH 1/7] Change virStorageBackendISCSISession 'probe' arg to bool

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

 



It quacks like a bool.
---
 src/storage/storage_backend_iscsi.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/storage/storage_backend_iscsi.c b/src/storage/storage_backend_iscsi.c
index ada6c48..531d044 100644
--- a/src/storage/storage_backend_iscsi.c
+++ b/src/storage/storage_backend_iscsi.c
@@ -92,7 +92,7 @@ virStorageBackendISCSIExtractSession(virStoragePoolObjPtr pool,
 
 static char *
 virStorageBackendISCSISession(virStoragePoolObjPtr pool,
-                              int probe)
+                              bool probe)
 {
     /*
      * # iscsiadm --mode session
@@ -646,7 +646,7 @@ virStorageBackendISCSICheckPool(virConnectPtr conn ATTRIBUTE_UNUSED,
         return -1;
     }
 
-    if ((session = virStorageBackendISCSISession(pool, 1)) != NULL) {
+    if ((session = virStorageBackendISCSISession(pool, true)) != NULL) {
         *isActive = true;
         VIR_FREE(session);
     }
@@ -806,7 +806,7 @@ virStorageBackendISCSIStartPool(virConnectPtr conn,
         return -1;
     }
 
-    if ((session = virStorageBackendISCSISession(pool, 1)) == NULL) {
+    if ((session = virStorageBackendISCSISession(pool, true)) == NULL) {
         if ((portal = virStorageBackendISCSIPortal(&pool->def->source)) == NULL)
             goto cleanup;
         /*
@@ -843,7 +843,7 @@ virStorageBackendISCSIRefreshPool(virConnectPtr conn ATTRIBUTE_UNUSED,
 
     pool->def->allocation = pool->def->capacity = pool->def->available = 0;
 
-    if ((session = virStorageBackendISCSISession(pool, 0)) == NULL)
+    if ((session = virStorageBackendISCSISession(pool, false)) == NULL)
         goto cleanup;
     if (virStorageBackendISCSIRescanLUNs(pool, session) < 0)
         goto cleanup;
-- 
1.8.3.2

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