]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg/UefiDebugLibConOut: make global variable static
authorZhichao Gao <zhichao.gao@intel.com>
Wed, 24 Apr 2019 03:20:38 +0000 (11:20 +0800)
committerLiming Gao <liming.gao@intel.com>
Sun, 28 Apr 2019 02:54:27 +0000 (10:54 +0800)
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1740

Add a 'static' storage-class specifier to the global variables
that only used in a single file to minimize the name collisions.
This is only for the variable named 'mExitBootServicesEvent'.

Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Dandan Bi <dandan.bi@intel.com>
Signed-off-by: Zhichao Gao <zhichao.gao@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdePkg/Library/UefiDebugLibConOut/DebugLibConstructor.c

index d4fdfbab55173e578f09f6777f421b4712ea19cd..80053703724f615d548aca819bd3d7e939fbe0a3 100644 (file)
@@ -17,7 +17,7 @@
 //\r
 BOOLEAN     mPostEBS = FALSE;\r
 \r
-EFI_EVENT   mExitBootServicesEvent;\r
+static EFI_EVENT   mExitBootServicesEvent;\r
 \r
 //\r
 // Pointer to SystemTable\r