diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-12-03 15:38:24 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-12-03 15:38:24 +0000 |
commit | b52f6a1ad8029588a8b1e3b8cfd4855ee6d5a727 (patch) | |
tree | f5ebc2406840670f8dfb79b7c84e2876053d63fa /MdePkg/Library/PeiPcdLib | |
parent | 53cf48e083930e279cbd8e12fdd923b7cbd65a9a (diff) | |
download | edk2-b52f6a1ad8029588a8b1e3b8cfd4855ee6d5a727.zip edk2-b52f6a1ad8029588a8b1e3b8cfd4855ee6d5a727.tar.gz edk2-b52f6a1ad8029588a8b1e3b8cfd4855ee6d5a727.tar.bz2 |
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/PeiPcdLib')
-rw-r--r-- | MdePkg/Library/PeiPcdLib/PeiPcdLib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MdePkg/Library/PeiPcdLib/PeiPcdLib.c b/MdePkg/Library/PeiPcdLib/PeiPcdLib.c index 8f9b7fa..ac5bbcf 100644 --- a/MdePkg/Library/PeiPcdLib/PeiPcdLib.c +++ b/MdePkg/Library/PeiPcdLib/PeiPcdLib.c @@ -524,7 +524,7 @@ EFIAPI LibPcdSetPtr (
IN UINTN TokenNumber,
IN OUT UINTN *SizeOfBuffer,
- IN VOID *Buffer
+ IN CONST VOID *Buffer
)
{
EFI_STATUS Status;
@@ -535,13 +535,13 @@ LibPcdSetPtr ( ASSERT (Buffer != NULL);
}
- Status = (GetPcdPpiPointer ())->SetPtr (TokenNumber, SizeOfBuffer, Buffer);
+ Status = (GetPcdPpiPointer ())->SetPtr (TokenNumber, SizeOfBuffer, (VOID *) Buffer);
if (EFI_ERROR (Status)) {
return NULL;
}
- return Buffer;
+ return (VOID *) Buffer;
}
|