[PATCH 04/10] conf: storagecaps: Fix broken attempt at being const-correct

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

 



The code formatting storage capabilities faithfully copied the wrong use
of 'const' from domain capabilities.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 src/conf/storage_capabilities.c | 4 ++--
 src/conf/storage_capabilities.h | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/conf/storage_capabilities.c b/src/conf/storage_capabilities.c
index cf3ee488ac..1a3417f90b 100644
--- a/src/conf/storage_capabilities.c
+++ b/src/conf/storage_capabilities.c
@@ -93,7 +93,7 @@ virStoragePoolCapsIsLoaded(virCapsPtr driverCaps,
 static int
 virStoragePoolCapsFormatPool(virBufferPtr buf,
                              int poolType,
-                             virStoragePoolCapsPtr const caps)
+                             const virStoragePoolCaps *caps)
 {
     bool isLoaded = virStoragePoolCapsIsLoaded(caps->driverCaps, poolType);

@@ -115,7 +115,7 @@ virStoragePoolCapsFormatPool(virBufferPtr buf,


 char *
-virStoragePoolCapsFormat(virStoragePoolCapsPtr const caps)
+virStoragePoolCapsFormat(const virStoragePoolCaps *caps)
 {
     virBuffer buf = VIR_BUFFER_INITIALIZER;
     size_t i;
diff --git a/src/conf/storage_capabilities.h b/src/conf/storage_capabilities.h
index 788ea227ea..377c313aa0 100644
--- a/src/conf/storage_capabilities.h
+++ b/src/conf/storage_capabilities.h
@@ -37,4 +37,4 @@ virStoragePoolCapsPtr
 virStoragePoolCapsNew(virCapsPtr driverCaps);

 char *
-virStoragePoolCapsFormat(virStoragePoolCapsPtr const caps);
+virStoragePoolCapsFormat(const virStoragePoolCaps *caps);
-- 
2.23.0

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