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:
parent
d2872fc47f
commit
ea1a436cb5
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user