diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-30 07:02:14 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-30 07:02:14 +0000 |
commit | 34abfd7cf8d2885121227f8bdf71fd7531907314 (patch) | |
tree | 8957927b5db46ab86ee3ddfb0f39b269eaf31ac9 /MdePkg/Library/UefiDevicePathLib | |
parent | 58228071abac66df09605d34d8e356bce2fc49bf (diff) | |
download | edk2-platforms-34abfd7cf8d2885121227f8bdf71fd7531907314.tar.xz |
Rename the global variable to avoid possible symbol conflict.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6304 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/UefiDevicePathLib')
-rw-r--r-- | MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c index c6661fe70d..2d266c70b7 100644 --- a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c +++ b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c @@ -34,7 +34,7 @@ //
// Template for an end-of-device path node.
//
-EFI_DEVICE_PATH_PROTOCOL mEndDevicePath = {
+GLOBAL_REMOVE_IF_UNREFERENCED CONST EFI_DEVICE_PATH_PROTOCOL mUefiDevicePathLibEndDevicePath = {
END_DEVICE_PATH_TYPE,
END_ENTIRE_DEVICE_PATH_SUBTYPE,
{
@@ -153,7 +153,7 @@ AppendDevicePath ( // If there's only 1 path, just duplicate it.
//
if (FirstDevicePath == NULL) {
- return DuplicateDevicePath ((SecondDevicePath != NULL) ? SecondDevicePath : &mEndDevicePath);
+ return DuplicateDevicePath ((SecondDevicePath != NULL) ? SecondDevicePath : &mUefiDevicePathLibEndDevicePath);
}
if (SecondDevicePath == NULL) {
@@ -217,7 +217,7 @@ AppendDevicePathNode ( UINTN NodeLength;
if (DevicePathNode == NULL) {
- return DuplicateDevicePath ((DevicePath != NULL) ? DevicePath : &mEndDevicePath);
+ return DuplicateDevicePath ((DevicePath != NULL) ? DevicePath : &mUefiDevicePathLibEndDevicePath);
}
//
// Build a Node that has a terminator on it
|