]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virPCIDeviceAddressAsString: Fix const correctness
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 6 Jun 2019 15:02:11 +0000 (17:02 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 6 Aug 2019 09:20:31 +0000 (11:20 +0200)
This function does not change any of the passed addresses. It
just reads them.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
ACKed-by: Peter Krempa <pkrempa@redhat.com>
src/util/virpci.c
src/util/virpci.h

index 3b5071824fdb2fbda1462cd36366a93645b556cc..61a6b359e5ec69adc71b1a17b62429de72802437 100644 (file)
@@ -1744,7 +1744,7 @@ virPCIDeviceAddressEqual(const virPCIDeviceAddress *addr1,
 }
 
 char *
-virPCIDeviceAddressAsString(virPCIDeviceAddressPtr addr)
+virPCIDeviceAddressAsString(const virPCIDeviceAddress *addr)
 {
     char *str;
 
index 4b00749151a18f0f6d07f03532bc2c7d77ee46ec..50748517779e7fd2ff6d57243a5a39cc482eb0b1 100644 (file)
@@ -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);