summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Klausner <wiz@NetBSD.org>2013-06-11 11:45:50 +0200
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-06-11 23:16:30 -0700
commitc10c86e5856596778cb8322aec8ce663b1f1bea5 (patch)
tree1d00383908428a5f524eb317ec3539a2d1df7cc2
parent719888a9ec5ef5a45698dea8a9642091c433ff29 (diff)
Move 'const' to correct place, so it has meaning.
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/common_interface.c2
1 files changed, 1 insertions, 1 deletions
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)) {