]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg: Fix IpsecConfig GCC build failure issue
authorJiaxin Wu <jiaxin.wu@intel.com>
Tue, 8 Mar 2016 08:08:40 +0000 (16:08 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Fri, 11 Mar 2016 00:33:57 +0000 (08:33 +0800)
This issue is caused by the string token ID for help message,
which is defined in the internal head file.
This head file is used for reference more than once. So,
multiple definition for the string token ID error will be
enrolled.

Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Zhang Lubo <lubo.zhang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Zhang, Lubo <lubo.zhang@intel.com>
NetworkPkg/Application/IpsecConfig/IpSecConfig.c
NetworkPkg/Application/IpsecConfig/IpSecConfig.h

index ff895bccf010fadbb15057fe8e651b8a81ee58d9..274f582b2bfe64dafc51354e83b8c6a221a87d59 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   The main process for IpSecConfig application.\r
 \r
 /** @file\r
   The main process for IpSecConfig application.\r
 \r
-  Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
 #include "Delete.h"\r
 #include "Helper.h"\r
 \r
 #include "Delete.h"\r
 #include "Helper.h"\r
 \r
+//\r
+// String token ID of IpSecConfig command help message text.\r
+//\r
+GLOBAL_REMOVE_IF_UNREFERENCED EFI_STRING_ID mStringIpSecHelpTokenId = STRING_TOKEN (STR_IPSEC_CONFIG_HELP);\r
+\r
 //\r
 // Used for ShellCommandLineParseEx only\r
 // and to ensure user inputs are in valid format\r
 //\r
 // Used for ShellCommandLineParseEx only\r
 // and to ensure user inputs are in valid format\r
index 244926f888ca799d47f34460c95e38e68407570f..8ebc599a12e7210f8316794dd13e3293e63ed92a 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   The internal structure and function declaration in IpSecConfig application.\r
 \r
 /** @file\r
   The internal structure and function declaration in IpSecConfig application.\r
 \r
-  Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
 \r
 #include <Protocol/IpSecConfig.h>\r
 \r
 \r
 #include <Protocol/IpSecConfig.h>\r
 \r
-//\r
-// String token ID of VConfig command help message text.\r
-//\r
-GLOBAL_REMOVE_IF_UNREFERENCED EFI_STRING_ID mStringIpSecHelpTokenId = STRING_TOKEN (STR_IPSEC_CONFIG_HELP);\r
-\r
 #define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))\r
 \r
 #define IPSECCONFIG_STATUS_NAME    L"IpSecStatus"\r
 #define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))\r
 \r
 #define IPSECCONFIG_STATUS_NAME    L"IpSecStatus"\r