}\r
\r
for (Index = 0; Index < Src->DiscoverTryCount; Index++) {\r
- Dst->DiscoverTimeout[Index] = NET_MAX (Src->DiscoverTimeout[Index], 1);\r
+ Dst->DiscoverTimeout[Index] = MAX (Src->DiscoverTimeout[Index], 1);\r
}\r
}\r
\r
}\r
\r
for (Index = 0; Index < Src->RequestTryCount; Index++) {\r
- Dst->RequestTimeout[Index] = NET_MAX (Src->RequestTimeout[Index], 1);\r
+ Dst->RequestTimeout[Index] = MAX (Src->RequestTimeout[Index], 1);\r
}\r
}\r
\r
SrcOptions = Src->OptionList;\r
\r
for (Index = 0; Index < Src->OptionCount; Index++) {\r
- Len = sizeof (EFI_DHCP4_PACKET_OPTION) + NET_MAX (SrcOptions[Index]->Length - 1, 0);\r
+ Len = sizeof (EFI_DHCP4_PACKET_OPTION) + MAX (SrcOptions[Index]->Length - 1, 0);\r
\r
DstOptions[Index] = NetAllocatePool (Len);\r
\r
DhcpSb->Selected,\r
DhcpSb->Para,\r
DHCP_MSG_REQUEST,\r
- "Extra renew/rebind by the application"\r
+ (UINT8 *) "Extra renew/rebind by the application"\r
);\r
\r
if (EFI_ERROR (Status)) {\r
Parse = (DHCP_PARSE_CONTEXT *) Context;\r
Parse->Index++;\r
\r
- if (Parse->Index < Parse->OptionCount) {\r
+ if (Parse->Index <= Parse->OptionCount) {\r
//\r
// Use _CR to get the memory position of EFI_DHCP4_PACKET_OPTION for\r
// the EFI_DHCP4_PACKET_OPTION->Data because DhcpIterateOptions only\r