summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/LinkedList.c
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2006-06-22 14:07:22 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2006-06-22 14:07:22 +0000
commitdc530c7b9df56725243aae875ed90ac1138e4628 (patch)
tree033c55927f95fb0e3c3eeb98e3a647a32e3695b0 /MdePkg/Library/BaseLib/LinkedList.c
parent30a60d29aac19ca429dc75b6295db907618513b4 (diff)
downloadedk2-platforms-dc530c7b9df56725243aae875ed90ac1138e4628.tar.xz
In before, FixedPcdGetxx macro was defined as global variable, it is wrong. It should be defined as value directly, and module developer can use it to define length of array.
1) Change macro FixedPcdGetxx to value macro. 2) Change some wrong macro usage in library. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@598 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseLib/LinkedList.c')
-rw-r--r--MdePkg/Library/BaseLib/LinkedList.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdePkg/Library/BaseLib/LinkedList.c b/MdePkg/Library/BaseLib/LinkedList.c
index 9ad1b0875b..be7e0a64b7 100644
--- a/MdePkg/Library/BaseLib/LinkedList.c
+++ b/MdePkg/Library/BaseLib/LinkedList.c
@@ -33,7 +33,7 @@ IsNodeInList (
ASSERT (List->BackLink != NULL);
ASSERT (Node != NULL);
- Count = FixedPcdGet32 (PcdMaximumLinkedListLength);
+ Count = PcdGet32 (PcdMaximumLinkedListLength);
if (Count != 0) {
Count++;
}
@@ -45,7 +45,7 @@ IsNodeInList (
} while ((Ptr != List) && (Ptr != Node) && (Count > 0));
Found = (BOOLEAN)(Ptr == Node);
- if (FixedPcdGet32 (PcdMaximumLinkedListLength) > 0) {
+ if (PcdGet32 (PcdMaximumLinkedListLength) > 0) {
while ((Count > 0) && (Ptr != List)) {
Ptr = Ptr->ForwardLink;
Count--;