summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'time.c')
-rw-r--r--time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/time.c b/time.c
index 08f4eb8282..fdf465ceb8 100644
--- a/time.c
+++ b/time.c
@@ -494,7 +494,7 @@ leap_year_p(long y)
static time_t
timegm_noleapsecond(struct tm *tm)
{
- static int common_year_yday_offset[] = {
+ static const int common_year_yday_offset[] = {
-1,
-1 + 31,
-1 + 31 + 28,
@@ -509,7 +509,7 @@ timegm_noleapsecond(struct tm *tm)
-1 + 31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30
/* 1 2 3 4 5 6 7 8 9 10 11 */
};
- static int leap_year_yday_offset[] = {
+ static const int leap_year_yday_offset[] = {
-1,
-1 + 31,
-1 + 31 + 29,