]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: update DNS_DEVICE_PATH/URI_DEVICE_PATH definition
authorYonghong Zhu <yonghong.zhu@intel.com>
Thu, 1 Mar 2018 07:04:51 +0000 (15:04 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Mon, 5 Mar 2018 07:22:59 +0000 (15:22 +0800)
Update this two definition to align with MdePkg.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/C/Include/Protocol/DevicePath.h

index a5d8eea9bc2b1924344a2e5b6fe8bce2fd572b56..68bb37e4793d0fd063cfe663a8039789795d1c2f 100644 (file)
@@ -5,7 +5,7 @@
   from a software point of view. The path must persist from boot to boot, so\r
   it can not contain things like PCI bus numbers that change from boot to boot.\r
 \r
-Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials are licensed and made available under\r
 the terms and conditions of the BSD License that accompanies this distribution.\r
 The full text of the license may be found at\r
@@ -38,6 +38,13 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #pragma pack(1)\r
 \r
+#if defined(_MSC_EXTENSIONS)\r
+//\r
+// Disable warning when last field of data structure is a zero sized array.\r
+//\r
+#pragma warning ( disable : 4200 )\r
+#endif\r
+\r
 /**\r
   This protocol can be used on any device handle to obtain generic path/location\r
   information concerning the physical device or logical device. If the handle does\r
@@ -830,7 +837,7 @@ typedef struct {
   ///\r
   /// Instance of the DNS server address.\r
   ///\r
-  EFI_IP_ADDRESS                  DnsServerIp[1024];\r
+  EFI_IP_ADDRESS                  DnsServerIp[];\r
 } DNS_DEVICE_PATH;\r
 \r
 ///\r
@@ -842,7 +849,7 @@ typedef struct {
   ///\r
   /// Instance of the URI pursuant to RFC 3986.\r
   ///\r
-  CHAR8                           Uri[1024];\r
+  CHAR8                           Uri[];\r
 } URI_DEVICE_PATH;\r
 \r
 ///\r