summaryrefslogtreecommitdiff
path: root/UnixPkg/Sec/UnixThunk.c
diff options
context:
space:
mode:
authorjji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524>2008-10-30 06:14:35 +0000
committerjji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524>2008-10-30 06:14:35 +0000
commit7492c63d423201cbabc00c343cc25269bb1254c1 (patch)
treed93889cc23d790f1d14cf66da4a898125be7c39d /UnixPkg/Sec/UnixThunk.c
parentba31c2e08e5c3925b4c21b454ee7ee2c7366657c (diff)
downloadedk2-platforms-7492c63d423201cbabc00c343cc25269bb1254c1.tar.xz
Patch to remove STATIC modifier. This is on longer recommended by EFI Framework coding style. All duplicated symbols has been renamed accordingly.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6301 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UnixPkg/Sec/UnixThunk.c')
-rw-r--r--UnixPkg/Sec/UnixThunk.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/UnixPkg/Sec/UnixThunk.c b/UnixPkg/Sec/UnixThunk.c
index 622cfb55bd..905cd80d27 100644
--- a/UnixPkg/Sec/UnixThunk.c
+++ b/UnixPkg/Sec/UnixThunk.c
@@ -34,11 +34,11 @@ Abstract:
#include "SecMain.h"
#include "Library/UnixLib.h"
-static int settimer_initialized;
-static struct timeval settimer_timeval;
-static void (*settimer_callback)(UINT64 delta);
+int settimer_initialized;
+struct timeval settimer_timeval;
+void (*settimer_callback)(UINT64 delta);
-static void
+void
settimer_handler (int sig)
{
struct timeval timeval;
@@ -53,7 +53,6 @@ settimer_handler (int sig)
(*settimer_callback)(delta);
}
-static
VOID
SetTimer (UINT64 PeriodMs, VOID (*CallBack)(UINT64 DeltaMs))
{
@@ -119,10 +118,10 @@ GetLocalTime (EFI_TIME *Time)
| (tm->tm_isdst > 0 ? EFI_TIME_IN_DAYLIGHT : 0);
}
-static void
+void
TzSet (void)
{
- static int done = 0;
+ STATIC int done = 0;
if (!done) {
tzset ();
done = 1;