]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Rename the global variable to avoid possible symbol conflict.
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 30 Oct 2008 07:02:14 +0000 (07:02 +0000)
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 30 Oct 2008 07:02:14 +0000 (07:02 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6304 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c

index c6661fe70da2885412d0d793be0d21d724d94981..2d266c70b76fc7f97cec6fbadbdf0ff54904ae25 100644 (file)
@@ -34,7 +34,7 @@
 //\r
 // Template for an end-of-device path node.\r
 //\r
-EFI_DEVICE_PATH_PROTOCOL  mEndDevicePath = {\r
+GLOBAL_REMOVE_IF_UNREFERENCED CONST EFI_DEVICE_PATH_PROTOCOL  mUefiDevicePathLibEndDevicePath = {\r
   END_DEVICE_PATH_TYPE,\r
   END_ENTIRE_DEVICE_PATH_SUBTYPE,\r
   {\r
@@ -153,7 +153,7 @@ AppendDevicePath (
   // If there's only 1 path, just duplicate it.\r
   //\r
   if (FirstDevicePath == NULL) {\r
-    return DuplicateDevicePath ((SecondDevicePath != NULL) ? SecondDevicePath : &mEndDevicePath);\r
+    return DuplicateDevicePath ((SecondDevicePath != NULL) ? SecondDevicePath : &mUefiDevicePathLibEndDevicePath);\r
   }\r
 \r
   if (SecondDevicePath == NULL) {\r
@@ -217,7 +217,7 @@ AppendDevicePathNode (
   UINTN                     NodeLength;\r
 \r
   if (DevicePathNode == NULL) {\r
-    return DuplicateDevicePath ((DevicePath != NULL) ? DevicePath : &mEndDevicePath);\r
+    return DuplicateDevicePath ((DevicePath != NULL) ? DevicePath : &mUefiDevicePathLibEndDevicePath);\r
   }\r
   //\r
   // Build a Node that has a terminator on it\r