{ &gEfiCapsuleArchProtocolGuid, (VOID **)NULL, NULL, NULL, FALSE },\r
{ &gEfiMonotonicCounterArchProtocolGuid, (VOID **)NULL, NULL, NULL, FALSE },\r
{ &gEfiResetArchProtocolGuid, (VOID **)NULL, NULL, NULL, FALSE },\r
- { &gEfiRealTimeClockArchProtocolGuid, (VOID **)NULL, NULL, NULL, FALSE },\r
- { NULL, (VOID **)NULL, NULL, NULL, FALSE }\r
+ { &gEfiRealTimeClockArchProtocolGuid, (VOID **)NULL, NULL, NULL, FALSE }\r
};\r
\r
\r
VOID\r
)\r
{\r
- ARCHITECTURAL_PROTOCOL_ENTRY *Entry;\r
+ UINTN Index;\r
\r
- for (Entry = mArchProtocols; Entry->ProtocolGuid != NULL; Entry++) {\r
- if (!Entry->Present) {\r
+ for (Index = 0; Index < sizeof (mArchProtocols) / sizeof (mArchProtocols[0]); Index++) {\r
+ if (!mArchProtocols[Index].Present) {\r
return EFI_NOT_FOUND;\r
}\r
}\r
BOOLEAN Found;\r
LIST_ENTRY *Link;\r
LIST_ENTRY TempLinkNode;\r
+ UINTN Index;\r
\r
Found = FALSE;\r
- for (Entry = mArchProtocols; Entry->ProtocolGuid != NULL; Entry++) {\r
+ for (Index = 0; Index < sizeof (mArchProtocols) / sizeof (mArchProtocols[0]); Index++) {\r
+ Entry = &mArchProtocols[Index];\r
\r
Status = CoreLocateProtocol (Entry->ProtocolGuid, Entry->Registration, &Protocol);\r
if (EFI_ERROR (Status)) {\r
{\r
EFI_STATUS Status;\r
ARCHITECTURAL_PROTOCOL_ENTRY *Entry;\r
+ UINTN Index;\r
\r
- for (Entry = mArchProtocols; Entry->ProtocolGuid != NULL; Entry++) {\r
+ for (Index = 0; Index < sizeof (mArchProtocols) / sizeof (mArchProtocols[0]); Index++) {\r
+ Entry = &mArchProtocols[Index];\r
\r
//\r
// Create the event\r
{\r
CONST GUID_TO_STRING_PROTOCOL_ENTRY *MissingEntry;\r
ARCHITECTURAL_PROTOCOL_ENTRY *Entry;\r
+ UINTN Index;\r
\r
- for (Entry = mArchProtocols; Entry->ProtocolGuid != NULL; Entry++) {\r
+ for (Index = 0; Index < sizeof (mArchProtocols) / sizeof (mArchProtocols[0]); Index++) {\r
+ Entry = &mArchProtocols[Index];\r
if (!Entry->Present) {\r
for (MissingEntry = MissingProtocols; TRUE ; MissingEntry++) {\r
if (CompareGuid (Entry->ProtocolGuid, MissingEntry->ProtocolGuid)) {\r