summaryrefslogtreecommitdiff
path: root/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-05-16 09:43:38 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-05-16 09:43:38 +0000
commitd7152a15f5258cc23651656381926dba56b1fae8 (patch)
tree8a95c757bd235f51f50daae60b5d22b05581c723 /EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk
parent263822c99f3a6f570e4ef7e3786f69751417f5fc (diff)
downloadedk2-platforms-d7152a15f5258cc23651656381926dba56b1fae8.tar.xz
Make the module GCC clean.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5213 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk')
-rw-r--r--EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Forms.c8
-rw-r--r--EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/HiiDatabase.c36
-rw-r--r--EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Package.c15
3 files changed, 23 insertions, 36 deletions
diff --git a/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Forms.c b/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Forms.c
index 17f12a75eb..8d15e82841 100644
--- a/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Forms.c
+++ b/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Forms.c
@@ -61,7 +61,7 @@ FRAMEWORK_HII_FORMSET_TEMPLATE FormSetTemplate = {
sizeof (FRAMEWORK_EFI_IFR_FORM_SET)
},
//Guid
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
+ {0, 0, 0, {0, 0, 0, 0, 0, 0, 0, 0}},
0,
0,
0,
@@ -70,8 +70,10 @@ FRAMEWORK_HII_FORMSET_TEMPLATE FormSetTemplate = {
0
},
{
- FRAMEWORK_EFI_IFR_END_FORM_SET_OP,
- sizeof (FRAMEWORK_EFI_IFR_END_FORM_SET)
+ {
+ FRAMEWORK_EFI_IFR_END_FORM_SET_OP,
+ sizeof (FRAMEWORK_EFI_IFR_END_FORM_SET)
+ }
}
};
diff --git a/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/HiiDatabase.c b/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/HiiDatabase.c
index 91410e8b69..26bd38d5ba 100644
--- a/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/HiiDatabase.c
+++ b/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/HiiDatabase.c
@@ -18,12 +18,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
EFI_HII_THUNK_PRIVATE_DATA *mHiiThunkPrivateData;
EFI_HII_THUNK_PRIVATE_DATA mHiiThunkPrivateDataTempate = {
- {//Signature
- EFI_HII_THUNK_DRIVER_DATA_SIGNATURE
- },
- {//Handle
- (EFI_HANDLE) NULL
- },
+ //Signature
+ EFI_HII_THUNK_DRIVER_DATA_SIGNATURE
+ ,
+ //Handle
+ (EFI_HANDLE) NULL
+ ,
{ //Hii
HiiNewPack,
HiiRemovePack,
@@ -46,18 +46,18 @@ EFI_HII_THUNK_PRIVATE_DATA mHiiThunkPrivateDataTempate = {
HiiGetKeyboardLayout
},
- { //StaticHiiHandle
- //The FRAMEWORK_EFI_HII_HANDLE starts from 1
- // and increase upwords untill reach the value of StaticPureUefiHiiHandle.
- // The code will assert to prevent overflow.
- (FRAMEWORK_EFI_HII_HANDLE) 1
- },
- { //StaticPureUefiHiiHandle
- //The Static FRAMEWORK_EFI_HII_HANDLE starts from 0xFFFF
- // and decrease downwords untill reach the value of StaticHiiHandle.
- // The code will assert to prevent overflow.
- (FRAMEWORK_EFI_HII_HANDLE) 0xFFFF
- },
+ //StaticHiiHandle
+ //The FRAMEWORK_EFI_HII_HANDLE starts from 1
+ // and increase upwords untill reach the value of StaticPureUefiHiiHandle.
+ // The code will assert to prevent overflow.
+ (FRAMEWORK_EFI_HII_HANDLE) 1
+ ,
+ //StaticPureUefiHiiHandle
+ //The Static FRAMEWORK_EFI_HII_HANDLE starts from 0xFFFF
+ // and decrease downwords untill reach the value of StaticHiiHandle.
+ // The code will assert to prevent overflow.
+ (FRAMEWORK_EFI_HII_HANDLE) 0xFFFF
+ ,
{
NULL, NULL //HiiHandleLinkList
},
diff --git a/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Package.c b/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Package.c
index 970d789368..847a8fbf57 100644
--- a/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Package.c
+++ b/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Package.c
@@ -122,21 +122,6 @@ LibExportPackageLists (
return Status;
}
-BOOLEAN
-IsOnlyStringPackagesInPackageList (
- IN CONST EFI_HII_PACKAGE_LIST_HEADER *StringPackageListHeader
- )
-{
- EFI_HII_PACKAGE_HEADER *PackageHeader;
-
- PackageHeader = (EFI_HII_PACKAGE_HEADER *) (StringPackageListHeader + 1);
-
- while (PackageHeader->Type != EFI_HII_PACKAGE_END) {
- PackageHeader = (EFI_HII_PACKAGE_HEADER *) (PackageHeader );
- }
-}
-
-
EFI_STATUS
InsertStringPackagesToIfrPackageList (
IN CONST EFI_HII_PACKAGE_LIST_HEADER *StringPackageListHeader,