]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UnixPkg/RealTimeClockRuntimeDxe/RealTimeClock.c
Update this library to restrict usage to DXE_RUNTIME_DRIVER and DXE_SAL_DRIVER module...
[mirror_edk2.git] / UnixPkg / RealTimeClockRuntimeDxe / RealTimeClock.c
index 672d9b210a4e7613c3c9b9d060d69628502012cc..7ab629cbf64b4b338ad261e6d7c4a396eac07ad5 100644 (file)
@@ -1,7 +1,7 @@
 /*++\r
 \r
-Copyright (c) 2004 - 2008, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
+Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
 http://opensource.org/licenses/bsd-license.php                                            \r
@@ -52,7 +52,6 @@ InitializeRealTimeClock (
   IN EFI_SYSTEM_TABLE                    *SystemTable\r
   );\r
 \r
-STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 UnixGetTime (\r
@@ -90,7 +89,7 @@ Returns:
 \r
   }\r
 \r
-  gUnix->GetLocalTime (Time);
+  gUnix->GetLocalTime (Time);\r
 \r
   if (Capabilities != NULL) {\r
     Capabilities->Resolution  = 1;\r
@@ -101,7 +100,6 @@ Returns:
   return EFI_SUCCESS;\r
 }\r
 \r
-STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 UnixSetTime (\r
@@ -143,7 +141,6 @@ Returns:
   return EFI_UNSUPPORTED;\r
 }\r
 \r
-STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 UnixGetWakeupTime (\r
@@ -179,7 +176,6 @@ Returns:
   return EFI_UNSUPPORTED;\r
 }\r
 \r
-STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 UnixSetWakeupTime (\r
@@ -308,7 +304,7 @@ Returns:
 --*/\r
 {\r
 \r
-  static const INTN  DayOfMonth[12] = { 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };\r
+  STATIC const INTN  DayOfMonth[12] = { 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };\r
 \r
   if (Time->Day < 1 ||\r
       Time->Day > DayOfMonth[Time->Month - 1] ||\r