[PATCH:libpciaccess 1/2] Move 'const' to correct place, so it has meaning.

Thomas Klausner wiz at NetBSD.org
Tue Jun 11 02:45:50 PDT 2013


---
 src/common_interface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common_interface.c b/src/common_interface.c
index 6dccf8e..3425edc 100644
--- a/src/common_interface.c
+++ b/src/common_interface.c
@@ -268,7 +268,7 @@ pci_device_map_range(struct pci_device *dev, pciaddr_t base,
 
 
     for (region = 0; region < 6; region++) {
-        const struct pci_mem_region const* r = &dev->regions[region];
+        const struct pci_mem_region * const r = &dev->regions[region];
 
         if (r->size != 0) {
             if ((r->base_addr <= base) && ((r->base_addr + r->size) > base)) {
-- 
1.8.2.3



More information about the xorg-devel mailing list