Index: trunk/i386/libsaio/nvidia.c =================================================================== --- trunk/i386/libsaio/nvidia.c (revision 58) +++ trunk/i386/libsaio/nvidia.c (revision 59) @@ -594,7 +594,6 @@ static int devprop_add_nvidia_template(struct DevPropDevice *device) { char tmp[16]; - int len; if(!device) return 0; @@ -616,7 +615,7 @@ // Rek : Dont use sprintf return, it does not WORK !! our custom sprintf() always return 0! // len = sprintf(tmp, "Slot-%x", devices_number); sprintf(tmp, "Slot-%x",devices_number); - devprop_add_value(device, "AAPL,slot-name", tmp, strlen(tmp)); + devprop_add_value(device, "AAPL,slot-name", (uint8_t *) tmp, strlen(tmp)); devices_number++; return 1; Index: trunk/i386/libsaio/pci.c =================================================================== --- trunk/i386/libsaio/pci.c (revision 58) +++ trunk/i386/libsaio/pci.c (revision 59) @@ -7,6 +7,7 @@ #include "libsaio.h" #include "bootstruct.h" #include "pci.h" +#include "pci_root.h" #ifndef DEBUG_PCI #define DEBUG_PCI 0