]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Option.c
Clean up Network Components to support GCC build.
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Mtftp4Dxe / Mtftp4Option.c
index b85784a926977a4f56ebee4a5a3bac6ec18fe690..64932ae8a22634e376e11223adafdd61098febcf 100644 (file)
@@ -21,7 +21,7 @@ Abstract:
 \r
 #include "Mtftp4Impl.h"\r
 \r
 \r
 #include "Mtftp4Impl.h"\r
 \r
-UINT8 *mMtftp4SupportedOptions[MTFTP4_SUPPORTED_OPTIONS] = {\r
+CHAR8 *mMtftp4SupportedOptions[MTFTP4_SUPPORTED_OPTIONS] = {\r
   "blksize",\r
   "timeout",\r
   "tsize",\r
   "blksize",\r
   "timeout",\r
   "tsize",\r
@@ -438,7 +438,7 @@ Mtftp4ParseOption (
       return EFI_INVALID_PARAMETER;\r
     }\r
 \r
       return EFI_INVALID_PARAMETER;\r
     }\r
 \r
-    if (NetStringEqualNoCase (This->OptionStr, "blksize")) {\r
+    if (NetStringEqualNoCase (This->OptionStr, (UINT8 *) "blksize")) {\r
       //\r
       // block size option, valid value is between [8, 65464]\r
       //\r
       //\r
       // block size option, valid value is between [8, 65464]\r
       //\r
@@ -451,7 +451,7 @@ Mtftp4ParseOption (
       MtftpOption->BlkSize = (UINT16) Value;\r
       MtftpOption->Exist |= MTFTP4_BLKSIZE_EXIST;\r
 \r
       MtftpOption->BlkSize = (UINT16) Value;\r
       MtftpOption->Exist |= MTFTP4_BLKSIZE_EXIST;\r
 \r
-    } else if (NetStringEqualNoCase (This->OptionStr, "timeout")) {\r
+    } else if (NetStringEqualNoCase (This->OptionStr, (UINT8 *) "timeout")) {\r
       //\r
       // timeout option, valid value is between [1, 255]\r
       //\r
       //\r
       // timeout option, valid value is between [1, 255]\r
       //\r
@@ -463,14 +463,14 @@ Mtftp4ParseOption (
 \r
       MtftpOption->Timeout = (UINT8) Value;\r
 \r
 \r
       MtftpOption->Timeout = (UINT8) Value;\r
 \r
-    } else if (NetStringEqualNoCase (This->OptionStr, "tsize")) {\r
+    } else if (NetStringEqualNoCase (This->OptionStr, (UINT8 *) "tsize")) {\r
       //\r
       // tsize option, the biggest transfer supported is 4GB with block size option\r
       //\r
       MtftpOption->Tsize = NetStringToU32 (This->ValueStr);\r
       MtftpOption->Exist |= MTFTP4_TSIZE_EXIST;\r
 \r
       //\r
       // tsize option, the biggest transfer supported is 4GB with block size option\r
       //\r
       MtftpOption->Tsize = NetStringToU32 (This->ValueStr);\r
       MtftpOption->Exist |= MTFTP4_TSIZE_EXIST;\r
 \r
-    } else if (NetStringEqualNoCase (This->OptionStr, "multicast")) {\r
+    } else if (NetStringEqualNoCase (This->OptionStr, (UINT8 *) "multicast")) {\r
       //\r
       // Multicast option, if it is a request, the value must be a zero\r
       // length string, otherwise, it is formated like "204.0.0.1,1857,1\0"\r
       //\r
       // Multicast option, if it is a request, the value must be a zero\r
       // length string, otherwise, it is formated like "204.0.0.1,1857,1\0"\r