the beos compiler is pretty pedantic and wont let you use c99 style variable decls.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20157 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Travis Geiselbrecht
2007-02-18 20:37:17 +00:00
parent c45b6d92d6
commit c2d83d3d4e
+4 -2
View File
@@ -170,9 +170,11 @@ controller_probe(device_node_handle parent)
res = pci->find_pci_capability(device, PCI_cap_id_sata, &cap_ofs);
if (res == B_OK) {
uint32 satacr0;
uint32 satacr1;
TRACE("PCI SATA capability found at offset 0x%x\n", cap_ofs);
uint32 satacr0 = pci->read_pci_config(device, cap_ofs, 4);
uint32 satacr1 = pci->read_pci_config(device, cap_ofs + 4, 4);
satacr0 = pci->read_pci_config(device, cap_ofs, 4);
satacr1 = pci->read_pci_config(device, cap_ofs + 4, 4);
TRACE("satacr0 = 0x%08x, satacr1 = 0x%08x\n", satacr0, satacr1);
}