mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
53cf48e083
commit
b52f6a1ad8
|
@ -1171,7 +1171,7 @@ EFIAPI
|
||||||
LibPcdSetPtr (
|
LibPcdSetPtr (
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN OUT UINTN *SizeOfBuffer,
|
IN OUT UINTN *SizeOfBuffer,
|
||||||
IN VOID *Buffer
|
IN CONST VOID *Buffer
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -483,7 +483,7 @@ EFIAPI
|
||||||
LibPcdSetPtr (
|
LibPcdSetPtr (
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN OUT UINTN *SizeOfBuffer,
|
IN OUT UINTN *SizeOfBuffer,
|
||||||
IN VOID *Buffer
|
IN CONST VOID *Buffer
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
|
|
|
@ -529,7 +529,7 @@ EFIAPI
|
||||||
LibPcdSetPtr (
|
LibPcdSetPtr (
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN OUT UINTN *SizeOfBuffer,
|
IN OUT UINTN *SizeOfBuffer,
|
||||||
IN VOID *Buffer
|
IN CONST VOID *Buffer
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
@ -540,13 +540,13 @@ LibPcdSetPtr (
|
||||||
ASSERT (Buffer != NULL);
|
ASSERT (Buffer != NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = mPcd->SetPtr (TokenNumber, SizeOfBuffer, Buffer);
|
Status = mPcd->SetPtr (TokenNumber, SizeOfBuffer, (VOID *) Buffer);
|
||||||
|
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Buffer;
|
return (VOID *) Buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -524,7 +524,7 @@ EFIAPI
|
||||||
LibPcdSetPtr (
|
LibPcdSetPtr (
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN OUT UINTN *SizeOfBuffer,
|
IN OUT UINTN *SizeOfBuffer,
|
||||||
IN VOID *Buffer
|
IN CONST VOID *Buffer
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
@ -535,13 +535,13 @@ LibPcdSetPtr (
|
||||||
ASSERT (Buffer != NULL);
|
ASSERT (Buffer != NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = (GetPcdPpiPointer ())->SetPtr (TokenNumber, SizeOfBuffer, Buffer);
|
Status = (GetPcdPpiPointer ())->SetPtr (TokenNumber, SizeOfBuffer, (VOID *) Buffer);
|
||||||
|
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Buffer;
|
return (VOID *) Buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue