summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Network
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-10-31 02:04:40 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-10-31 02:04:40 +0000
commit19b15d6310e68da4656d04c6549ad615297c785d (patch)
tree6c9903d9b07e4175fbbf77d947668a77da404fbf /MdeModulePkg/Universal/Network
parent8630d2ddf18dd58e98d308d2c7d35fb159bc2fa2 (diff)
downloadedk2-19b15d6310e68da4656d04c6549ad615297c785d.zip
edk2-19b15d6310e68da4656d04c6549ad615297c785d.tar.gz
edk2-19b15d6310e68da4656d04c6549ad615297c785d.tar.bz2
Change functional static variable to Global variable. No STATIC modifier is recommended though it is defined in Base.h.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6313 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network')
-rw-r--r--MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_loadfile.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_loadfile.c b/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_loadfile.c
index e2b5609..a15b873 100644
--- a/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_loadfile.c
+++ b/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_loadfile.c
@@ -1,6 +1,6 @@
/** @file
-Copyright (c) 2004 - 2007, Intel Corporation
+Copyright (c) 2004 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -39,7 +39,7 @@ typedef union {
UINT8 *BytePtr;
} UNION_PTR;
-
+UINTN mPropeller;
/**
PxeBc callback routine for status updates and aborts.
@@ -68,13 +68,11 @@ bc_callback (
IN EFI_PXE_BASE_CODE_PACKET * PacketPtr OPTIONAL
)
{
- STATIC UINTN Propeller;
-
EFI_INPUT_KEY Key;
UINTN Row;
UINTN Col;
- Propeller = 0;
+ mPropeller = 0;
//
// Resolve Warning 4 unreferenced parameter problem
//
@@ -139,10 +137,10 @@ bc_callback (
Row = gST->ConOut->Mode->CursorRow;
Col = gST->ConOut->Mode->CursorColumn;
- AsciiPrint ("%c", "/-\\|"[Propeller]);
+ AsciiPrint ("%c", "/-\\|"[mPropeller]);
gST->ConOut->SetCursorPosition (gST->ConOut, Col, Row);
- Propeller = (Propeller + 1) & 3;
+ mPropeller = (mPropeller + 1) & 3;
}
return EFI_PXE_BASE_CODE_CALLBACK_STATUS_CONTINUE;