From c57f433713e9b73376f6223f6a9983af82b94048 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Mon, 20 Jun 2011 17:02:44 +0000 Subject: [PATCH] fix the PPC build: don't use NULL for an int parameter, found by gcc 4.5 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42264 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../bus_managers/pci/arch/ppc/openfirmware/pci_openfirmware.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/kernel/bus_managers/pci/arch/ppc/openfirmware/pci_openfirmware.cpp b/src/add-ons/kernel/bus_managers/pci/arch/ppc/openfirmware/pci_openfirmware.cpp index 4c361f68db..aae1330532 100644 --- a/src/add-ons/kernel/bus_managers/pci/arch/ppc/openfirmware/pci_openfirmware.cpp +++ b/src/add-ons/kernel/bus_managers/pci/arch/ppc/openfirmware/pci_openfirmware.cpp @@ -31,7 +31,7 @@ ppc_openfirmware_pci_controller_init(void) { char path[256]; int cookie = 0; - while (of_get_next_device(&cookie, NULL, "pci", path, sizeof(path)) + while (of_get_next_device(&cookie, 0, "pci", path, sizeof(path)) == B_OK) { dprintf("ppc_openfirmware_pci_controller_init(): pci device node: %s\n", path); // get the device node and the "compatible" property