OSDN Git Service

Move 'const' to correct place, so it has meaning.
authorThomas Klausner <wiz@NetBSD.org>
Tue, 11 Jun 2013 09:45:50 +0000 (11:45 +0200)
committerAlan Coopersmith <alan.coopersmith@oracle.com>
Wed, 12 Jun 2013 06:16:30 +0000 (23:16 -0700)
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
src/common_interface.c

index 6dccf8e..3425edc 100644 (file)
@@ -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)) {