//\r
Message = NULL;\r
\r
- if (!EFI_IP4_EQUAL (Head->YourAddr, Selected->YourAddr)) {\r
- Message = "Lease confirmed isn't the same as that in the offer";\r
+ if (!EFI_IP4_EQUAL (&Head->YourAddr, &Selected->YourAddr)) {\r
+ Message = (UINT8 *) "Lease confirmed isn't the same as that in the offer";\r
goto REJECT;\r
}\r
\r
Status = DhcpCallUser (DhcpSb, Dhcp4RcvdAck, Packet, NULL);\r
\r
if (EFI_ERROR (Status)) {\r
- Message = "Lease is denied upon received ACK";\r
+ Message = (UINT8 *) "Lease is denied upon received ACK";\r
goto REJECT;\r
}\r
\r
Status = DhcpLeaseAcquired (DhcpSb);\r
\r
if (EFI_ERROR (Status)) {\r
- Message = "Lease is denied upon entering bound";\r
+ Message = (UINT8 *) "Lease is denied upon entering bound";\r
goto REJECT;\r
}\r
\r
// The lease is different from the selected. Don't send a DECLINE\r
// since it isn't existed in the client's FSM.\r
//\r
- if (!EFI_IP4_EQUAL (Head->YourAddr, Selected->YourAddr)) {\r
+ if (!EFI_IP4_EQUAL (&Head->YourAddr, &Selected->YourAddr)) {\r
goto ON_EXIT;\r
}\r
\r
// Append the user's message if it isn't NULL\r
//\r
if (Msg != NULL) {\r
- Len = NET_MIN ((UINT32) AsciiStrLen ((CHAR8 *) Msg), 255);\r
+ Len = MIN ((UINT32) AsciiStrLen ((CHAR8 *) Msg), 255);\r
Buf = DhcpAppendOption (Buf, DHCP_TAG_MESSAGE, (UINT16) Len, Msg);\r
}\r
\r