]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/DxePrintLibPrint2Protocol: make mStatusString array CONST
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 16 Jul 2015 06:50:45 +0000 (06:50 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Thu, 16 Jul 2015 06:50:45 +0000 (06:50 +0000)
Change the type of mStatusString[] to reflect that it is a CONST
array of pointers to CONST.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18022 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c

index a41f228cc2c39b1849eff7a3883f2dc59414d830..4acdcb8714903a165dcaa1069ab8f612a7efd639 100644 (file)
@@ -1081,7 +1081,7 @@ InternalPrintLibSPrint (
 #define WARNING_STATUS_NUMBER         5\r
 #define ERROR_STATUS_NUMBER           33\r
 \r
-GLOBAL_REMOVE_IF_UNREFERENCED CONST CHAR8 *mStatusString[] = {\r
+GLOBAL_REMOVE_IF_UNREFERENCED CONST CHAR8 * CONST mStatusString[] = {\r
   "Success",                      //  RETURN_SUCCESS                = 0\r
   "Warning Unknown Glyph",        //  RETURN_WARN_UNKNOWN_GLYPH     = 1\r
   "Warning Delete Failure",       //  RETURN_WARN_DELETE_FAILURE    = 2\r