summary refs log tree commit diff
path: root/time
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-11-24 18:37:56 +0000
committerUlrich Drepper <drepper@redhat.com>2002-11-24 18:37:56 +0000
commit8592ae9207143e5372883b2b0045243bac19a630 (patch)
tree95d4c71cc90f6667e88009c663f7f1589a4f3c68 /time
parentdab830850f70d682270d4637c1683eb54ad6dd37 (diff)
downloadglibc-8592ae9207143e5372883b2b0045243bac19a630.tar.gz
glibc-8592ae9207143e5372883b2b0045243bac19a630.tar.xz
glibc-8592ae9207143e5372883b2b0045243bac19a630.zip
(__mon_yday, __mktime_internal) [!_LIBC]: Declare as `static'.
Diffstat (limited to 'time')
-rw-r--r--time/mktime.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/time/mktime.c b/time/mktime.c
index 4fb818ece0..f4c2c67d24 100644
--- a/time/mktime.c
+++ b/time/mktime.c
@@ -100,6 +100,9 @@
 #endif
 
 /* How many days come before each month (0-12).  */
+#ifndef _LIBC
+static
+#endif
 const unsigned short int __mon_yday[2][13] =
   {
     /* Normal years.  */
@@ -213,6 +216,9 @@ ranged_convert (struct tm *(*convert) (const time_t *, struct tm *),
    Use *OFFSET to keep track of a guess at the offset of the result,
    compared to what the result would be for UTC without leap seconds.
    If *OFFSET's guess is correct, only one CONVERT call is needed.  */
+#ifndef _LIBC
+static
+#endif
 time_t
 __mktime_internal (struct tm *tp,
 		   struct tm *(*convert) (const time_t *, struct tm *),
@@ -246,7 +252,7 @@ __mktime_internal (struct tm *tp,
   int mon_years = mon / 12 - negative_mon_remainder;
   int year = year_requested + mon_years;
 
-   /* The other values need not be in range:
+  /* The other values need not be in range:
      the remaining code handles minor overflows correctly,
      assuming int and time_t arithmetic wraps around.
      Major overflows are caught at the end.  */