From 8592ae9207143e5372883b2b0045243bac19a630 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 24 Nov 2002 18:37:56 +0000 Subject: [PATCH] (__mon_yday, __mktime_internal) [!_LIBC]: Declare as `static'. --- time/mktime.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/time/mktime.c b/time/mktime.c index 4fb818e..f4c2c67 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. */ -- 2.7.4