diff options
author | qianouyang <qianouyang@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-01-25 02:56:06 +0000 |
---|---|---|
committer | qianouyang <qianouyang@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-01-25 02:56:06 +0000 |
commit | 14fc747b153049a9de4bec1f69fe81b74b837577 (patch) | |
tree | 57107b69a5498ec0a0ed547f9a55c42a41ccccd0 /NetworkPkg | |
parent | f6cf5cf80060cbb2bd21568a4315ea84fa6722b1 (diff) | |
download | edk2-platforms-14fc747b153049a9de4bec1f69fe81b74b837577.tar.xz |
NetworkPkg: Update the IpsecConfig application to fix the GCC4.5 build issue.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11271 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'NetworkPkg')
-rw-r--r-- | NetworkPkg/Application/IpsecConfig/IpSecConfig.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/NetworkPkg/Application/IpsecConfig/IpSecConfig.c b/NetworkPkg/Application/IpsecConfig/IpSecConfig.c index 1e63bc9622..f64cf9728e 100644 --- a/NetworkPkg/Application/IpsecConfig/IpSecConfig.c +++ b/NetworkPkg/Application/IpsecConfig/IpSecConfig.c @@ -719,7 +719,7 @@ InitializeIpSecConfig ( //
// Try to get policy database type.
//
- DataType = (EFI_IPSEC_CONFIG_DATA_TYPE) -1;
+ DataType = (EFI_IPSEC_CONFIG_DATA_TYPE) - 1;
ValueStr = ShellCommandLineGetValue (ParamPackage, L"-p");
if (ValueStr != NULL) {
DataType = (EFI_IPSEC_CONFIG_DATA_TYPE) MapStringToInteger (ValueStr, mMapPolicy);
@@ -730,11 +730,12 @@ InitializeIpSecConfig ( }
if (ShellCommandLineGetFlag (ParamPackage, L"-?")) {
- switch (DataType) {
- case (EFI_IPSEC_CONFIG_DATA_TYPE) -1:
- ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_IPSEC_CONFIG_HELP), mHiiHandle);
- break;
+ if (DataType == -1) {
+ ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_IPSEC_CONFIG_HELP), mHiiHandle);
+ goto Done;
+ }
+ switch (DataType) {
case IPsecConfigDataTypeSpd:
ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_IPSEC_CONFIG_SPD_HELP), mHiiHandle);
break;
|