qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [5400] Make PCI class description tables const


From: Blue Swirl
Subject: [Qemu-devel] [5400] Make PCI class description tables const
Date: Thu, 02 Oct 2008 18:33:51 +0000

Revision: 5400
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5400
Author:   blueswir1
Date:     2008-10-02 18:33:50 +0000 (Thu, 02 Oct 2008)

Log Message:
-----------
Make PCI class description tables const

Modified Paths:
--------------
    trunk/hw/pci.c

Modified: trunk/hw/pci.c
===================================================================
--- trunk/hw/pci.c      2008-10-02 18:32:44 UTC (rev 5399)
+++ trunk/hw/pci.c      2008-10-02 18:33:50 UTC (rev 5400)
@@ -515,7 +515,7 @@
     const char *desc;
 } pci_class_desc;
 
-static pci_class_desc pci_class_descriptions[] =
+static const pci_class_desc pci_class_descriptions[] =
 {
     { 0x0100, "SCSI controller"},
     { 0x0101, "IDE controller"},
@@ -559,7 +559,7 @@
 {
     int i, class;
     PCIIORegion *r;
-    pci_class_desc *desc;
+    const pci_class_desc *desc;
 
     term_printf("  Bus %2d, device %3d, function %d:\n",
            d->bus->bus_num, d->devfn >> 3, d->devfn & 7);






reply via email to

[Prev in Thread] Current Thread [Next in Thread]