summaryrefslogtreecommitdiff
path: root/MdePkg/Library/DxePcdLib
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-03 15:38:24 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-03 15:38:24 +0000
commitb52f6a1ad8029588a8b1e3b8cfd4855ee6d5a727 (patch)
treef5ebc2406840670f8dfb79b7c84e2876053d63fa /MdePkg/Library/DxePcdLib
parent53cf48e083930e279cbd8e12fdd923b7cbd65a9a (diff)
downloadedk2-platforms-b52f6a1ad8029588a8b1e3b8cfd4855ee6d5a727.tar.xz
Add CONST modifier for "Buffer" parameter in LibPcdSetPtr()
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6823 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/DxePcdLib')
-rw-r--r--MdePkg/Library/DxePcdLib/DxePcdLib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/MdePkg/Library/DxePcdLib/DxePcdLib.c b/MdePkg/Library/DxePcdLib/DxePcdLib.c
index e5d05fbe8c..c313bb7687 100644
--- a/MdePkg/Library/DxePcdLib/DxePcdLib.c
+++ b/MdePkg/Library/DxePcdLib/DxePcdLib.c
@@ -529,7 +529,7 @@ EFIAPI
LibPcdSetPtr (
IN UINTN TokenNumber,
IN OUT UINTN *SizeOfBuffer,
- IN VOID *Buffer
+ IN CONST VOID *Buffer
)
{
EFI_STATUS Status;
@@ -540,13 +540,13 @@ LibPcdSetPtr (
ASSERT (Buffer != NULL);
}
- Status = mPcd->SetPtr (TokenNumber, SizeOfBuffer, Buffer);
+ Status = mPcd->SetPtr (TokenNumber, SizeOfBuffer, (VOID *) Buffer);
if (EFI_ERROR (Status)) {
return NULL;
}
- return Buffer;
+ return (VOID *) Buffer;
}