diff options
author | bbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-05-26 18:49:15 +0000 |
---|---|---|
committer | bbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-05-26 18:49:15 +0000 |
commit | b560bb65c476d0477667ad820c89d6f8ef3043b1 (patch) | |
tree | 141db4738df594ed8eb632db57adf5d3389d9c32 | |
parent | f2982b30b28393c665919c8d555a6c47131b7543 (diff) | |
download | edk2-b560bb65c476d0477667ad820c89d6f8ef3043b1.zip edk2-b560bb65c476d0477667ad820c89d6f8ef3043b1.tar.gz edk2-b560bb65c476d0477667ad820c89d6f8ef3043b1.tar.bz2 |
Fix more gcc build breaks. One of these was a subtle bug in the code that was caught by a gcc warning.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@297 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | EdkModulePkg/Universal/PCD/Pei/Pcd.c | 2 | ||||
-rw-r--r-- | EdkModulePkg/Universal/PCD/Pei/Service.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/EdkModulePkg/Universal/PCD/Pei/Pcd.c b/EdkModulePkg/Universal/PCD/Pei/Pcd.c index 974095f..1f6db7a 100644 --- a/EdkModulePkg/Universal/PCD/Pei/Pcd.c +++ b/EdkModulePkg/Universal/PCD/Pei/Pcd.c @@ -493,7 +493,7 @@ PeiPcdGetNextToken ( BOOLEAN Found;
if (Guid == NULL) {
- *TokenNumber++;
+ (*TokenNumber)++;
if (*TokenNumber >= PEI_NEX_TOKEN_NUMBER) {
*TokenNumber = 0;
diff --git a/EdkModulePkg/Universal/PCD/Pei/Service.c b/EdkModulePkg/Universal/PCD/Pei/Service.c index 54d1250..30595e1 100644 --- a/EdkModulePkg/Universal/PCD/Pei/Service.c +++ b/EdkModulePkg/Universal/PCD/Pei/Service.c @@ -143,7 +143,7 @@ GetHiiVariable ( VOID *Buffer;
EFI_PEI_READ_ONLY_VARIABLE_PPI *VariablePpi;
- Status = PeiCoreLocatePpi (&gEfiPeiReadOnlyVariablePpiGuid, 0, NULL, &VariablePpi);
+ Status = PeiCoreLocatePpi (&gEfiPeiReadOnlyVariablePpiGuid, 0, NULL, (VOID **) &VariablePpi);
ASSERT_EFI_ERROR (Status);
Size = 0;
|