提交 ac77ed27 编写于 作者: M Michal Privoznik

virPCIDeviceAddressAsString: Fix const correctness

This function does not change any of the passed addresses. It
just reads them.
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
ACKed-by: NPeter Krempa <pkrempa@redhat.com>
上级 0ee13fcd
......@@ -1744,7 +1744,7 @@ virPCIDeviceAddressEqual(const virPCIDeviceAddress *addr1,
}
char *
virPCIDeviceAddressAsString(virPCIDeviceAddressPtr addr)
virPCIDeviceAddressAsString(const virPCIDeviceAddress *addr)
{
char *str;
......
......@@ -236,7 +236,7 @@ bool virPCIDeviceAddressIsEmpty(const virPCIDeviceAddress *addr);
bool virPCIDeviceAddressEqual(const virPCIDeviceAddress *addr1,
const virPCIDeviceAddress *addr2);
char *virPCIDeviceAddressAsString(virPCIDeviceAddressPtr addr)
char *virPCIDeviceAddressAsString(const virPCIDeviceAddress *addr)
ATTRIBUTE_NONNULL(1);
int virPCIDeviceAddressParse(char *address, virPCIDeviceAddressPtr bdf);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册