mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
conf: storagecaps: Fix broken attempt at being const-correct
The code formatting storage capabilities faithfully copied the wrong use of 'const' from domain capabilities. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
f118a00342
commit
2ac56edbf8
@ -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;
|
||||
|
@ -37,4 +37,4 @@ virStoragePoolCapsPtr
|
||||
virStoragePoolCapsNew(virCapsPtr driverCaps);
|
||||
|
||||
char *
|
||||
virStoragePoolCapsFormat(virStoragePoolCapsPtr const caps);
|
||||
virStoragePoolCapsFormat(const virStoragePoolCaps *caps);
|
||||
|
Loading…
Reference in New Issue
Block a user