Commit 09bc878a13c1ca1c5d2400db5657ea7d04fe26bc
1 parent
8662d656
Make PCI class description tables const
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5400 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
2 deletions
hw/pci.c
| @@ -515,7 +515,7 @@ typedef struct { | @@ -515,7 +515,7 @@ typedef struct { | ||
| 515 | const char *desc; | 515 | const char *desc; |
| 516 | } pci_class_desc; | 516 | } pci_class_desc; |
| 517 | 517 | ||
| 518 | -static pci_class_desc pci_class_descriptions[] = | 518 | +static const pci_class_desc pci_class_descriptions[] = |
| 519 | { | 519 | { |
| 520 | { 0x0100, "SCSI controller"}, | 520 | { 0x0100, "SCSI controller"}, |
| 521 | { 0x0101, "IDE controller"}, | 521 | { 0x0101, "IDE controller"}, |
| @@ -559,7 +559,7 @@ static void pci_info_device(PCIDevice *d) | @@ -559,7 +559,7 @@ static void pci_info_device(PCIDevice *d) | ||
| 559 | { | 559 | { |
| 560 | int i, class; | 560 | int i, class; |
| 561 | PCIIORegion *r; | 561 | PCIIORegion *r; |
| 562 | - pci_class_desc *desc; | 562 | + const pci_class_desc *desc; |
| 563 | 563 | ||
| 564 | term_printf(" Bus %2d, device %3d, function %d:\n", | 564 | term_printf(" Bus %2d, device %3d, function %d:\n", |
| 565 | d->bus->bus_num, d->devfn >> 3, d->devfn & 7); | 565 | d->bus->bus_num, d->devfn >> 3, d->devfn & 7); |