1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-04-01 20:05:19 +00:00

conf: Make virDomainDeviceInfoFormat() const correct

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Andrea Bolognani 2021-09-23 15:43:26 +02:00
parent d2872fc47f
commit ea1a436cb5
3 changed files with 5 additions and 5 deletions

View File

@ -1829,7 +1829,7 @@ virDomainVirtioSerialAddrIsComplete(virDomainDeviceInfo *info)
bool
virDomainUSBAddressPortIsValid(unsigned int *port)
virDomainUSBAddressPortIsValid(const unsigned int *port)
{
return port[0] != 0;
}
@ -1837,7 +1837,7 @@ virDomainUSBAddressPortIsValid(unsigned int *port)
void
virDomainUSBAddressPortFormatBuf(virBuffer *buf,
unsigned int *port)
const unsigned int *port)
{
size_t i;

View File

@ -246,12 +246,12 @@ virDomainVirtioSerialAddrAutoAssign(virDomainDef *def,
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
bool
virDomainUSBAddressPortIsValid(unsigned int *port)
virDomainUSBAddressPortIsValid(const unsigned int *port)
ATTRIBUTE_NONNULL(1);
void
virDomainUSBAddressPortFormatBuf(virBuffer *buf,
unsigned int *port)
const unsigned int *port)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
#define VIR_DOMAIN_USB_HUB_PORTS 8

View File

@ -6334,7 +6334,7 @@ virDomainVirtioOptionsFormat(virBuffer *buf,
static void ATTRIBUTE_NONNULL(2)
virDomainDeviceInfoFormat(virBuffer *buf,
virDomainDeviceInfo *info,
const virDomainDeviceInfo *info,
unsigned int flags)
{
g_auto(virBuffer) attrBuf = VIR_BUFFER_INITIALIZER;