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:
qhuang8 2008-12-03 15:38:24 +00:00
parent 53cf48e083
commit b52f6a1ad8
4 changed files with 8 additions and 8 deletions

View File

@ -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
); );

View File

@ -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);

View File

@ -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;
} }

View File

@ -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;
} }