summaryrefslogtreecommitdiff
path: root/MdePkg
diff options
context:
space:
mode:
authorZhichao Gao <zhichao.gao@intel.com>2019-04-24 11:26:00 +0800
committerLiming Gao <liming.gao@intel.com>2019-04-28 10:54:27 +0800
commit7eef381378b7b1f50c9a0f98b786ea3c71ec0a8c (patch)
tree6573cd908cf1ddf186a780621075cb1768dbad43 /MdePkg
parentc17e4a2f537187e33283434393d317747e5671a4 (diff)
downloadedk2-7eef381378b7b1f50c9a0f98b786ea3c71ec0a8c.zip
edk2-7eef381378b7b1f50c9a0f98b786ea3c71ec0a8c.tar.gz
edk2-7eef381378b7b1f50c9a0f98b786ea3c71ec0a8c.tar.bz2
MdePkg/UefiDebugLibDebugPortProtocol: make global variable static
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>
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLibConstructor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLibConstructor.c b/MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLibConstructor.c
index ed2cb70..de60d33 100644
--- a/MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLibConstructor.c
+++ b/MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLibConstructor.c
@@ -17,7 +17,7 @@
//
BOOLEAN mPostEBS = FALSE;
-EFI_EVENT mExitBootServicesEvent;
+static EFI_EVENT mExitBootServicesEvent;
//
// Pointer to SystemTable