Index: trunk/i386/libsaio/fake_efi.c =================================================================== --- trunk/i386/libsaio/fake_efi.c (revision 2589) +++ trunk/i386/libsaio/fake_efi.c (revision 2590) @@ -145,12 +145,12 @@ DT__AddProperty(tableNode, "guid", sizeof(EFI_GUID), (void *)pGuid); // The "table" property is the 32-bit (in our implementation) physical address of the table - DT__AddProperty(tableNode, "table", sizeof(void*) * 2, table); + DT__AddProperty(tableNode, "table", sizeof(void *) * 2, table); // Assume the alias pointer is a global or static piece of data if (alias != NULL) { - DT__AddProperty(tableNode, "alias", strlen(alias)+1, (char*)alias); + DT__AddProperty(tableNode, "alias", strlen(alias)+1, (char *)alias); } return EFI_SUCCESS; @@ -192,9 +192,9 @@ uint8_t voidret_instructions[sizeof(VOIDRET_INSTRUCTIONS)/sizeof(uint8_t)]; uint8_t unsupportedret_instructions[sizeof(UNSUPPORTEDRET_INSTRUCTIONS_32)/sizeof(uint8_t)]; }; - - struct fake_efi_pages *fakeEfiPages = (struct fake_efi_pages*)AllocateKernelMemory(sizeof(struct fake_efi_pages)); - + + struct fake_efi_pages *fakeEfiPages = (struct fake_efi_pages *)AllocateKernelMemory(sizeof(struct fake_efi_pages)); + // Zero out all the tables in case fields are added later //bzero(fakeEfiPages, sizeof(struct fake_efi_pages)); @@ -262,8 +262,8 @@ // but it is nice if we can at least prevent a complete crash by // at least providing some sort of implementation until one can be provided // nicely in a kext. - void (*voidret_fp)() = (void*)fakeEfiPages->voidret_instructions; - void (*unsupportedret_fp)() = (void*)fakeEfiPages->unsupportedret_instructions; + void (*voidret_fp)() = (void *)fakeEfiPages->voidret_instructions; + void (*unsupportedret_fp)() = (void *)fakeEfiPages->unsupportedret_instructions; efiRuntimeServices->GetTime = (EFI_PTR32)unsupportedret_fp; efiRuntimeServices->SetTime = (EFI_PTR32)unsupportedret_fp; efiRuntimeServices->GetWakeupTime = (EFI_PTR32)unsupportedret_fp; @@ -303,7 +303,7 @@ uint8_t unsupportedret_instructions[sizeof(UNSUPPORTEDRET_INSTRUCTIONS_64)/sizeof(uint8_t)]; }; - struct fake_efi_pages *fakeEfiPages = (struct fake_efi_pages*)AllocateKernelMemory(sizeof(struct fake_efi_pages)); + struct fake_efi_pages *fakeEfiPages = (struct fake_efi_pages *)AllocateKernelMemory(sizeof(struct fake_efi_pages)); // Zero out all the tables in case fields are added later //bzero(fakeEfiPages, sizeof(struct fake_efi_pages)); @@ -371,8 +371,8 @@ // at least providing some sort of implementation until one can be provided // nicely in a kext. - void (*voidret_fp)() = (void*)fakeEfiPages->voidret_instructions; - void (*unsupportedret_fp)() = (void*)fakeEfiPages->unsupportedret_instructions; + void (*voidret_fp)() = (void *)fakeEfiPages->voidret_instructions; + void (*unsupportedret_fp)() = (void *)fakeEfiPages->unsupportedret_instructions; efiRuntimeServices->GetTime = ptov64((EFI_PTR32)unsupportedret_fp); efiRuntimeServices->SetTime = ptov64((EFI_PTR32)unsupportedret_fp); efiRuntimeServices->GetWakeupTime = ptov64((EFI_PTR32)unsupportedret_fp); @@ -465,7 +465,7 @@ /* * Get an smbios option string option to convert to EFI_CHAR16 string */ -static EFI_CHAR16* getSmbiosChar16(const char * key, size_t* len) +static EFI_CHAR16 *getSmbiosChar16(const char *key, size_t *len) { const char *src = getStringForKey(key, &bootInfo->smbiosConfig); EFI_CHAR16* dst = 0; @@ -491,13 +491,15 @@ /* * Get the SystemID from the bios dmi info -static EFI_CHAR8* getSmbiosUUID() +static EFI_CHAR8 *getSmbiosUUID() { - static EFI_CHAR8 uuid[UUID_LEN]; - int i, isZero, isOnes; - SMBByte *p; + static EFI_CHAR8 uuid[UUID_LEN]; + int i; + int isZero; + int isOnes; + SMBByte *p; - p = (SMBByte*)Platform.UUID; + p = (SMBByte *)Platform.UUID; for (i=0, isZero=1, isOnes=1; i