From 5669377a571b992a25c4ee98c7685e8c7d4c6ec0 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 1 Jul 2008 08:44:32 +0000 Subject: * iseq.c (COMPILE_OPTION_FALSE), time.c (timegm_noleapsecond), thread.c (eKillSignal, eTerminateSignal), missing/vsnprintf.c (BSD_vfprintf): constified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- time.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'time.c') 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, -- cgit v1.2.3