aboutsummaryrefslogtreecommitdiffstats
path: root/time.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-01 08:44:32 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-01 08:44:32 +0000
commit5669377a571b992a25c4ee98c7685e8c7d4c6ec0 (patch)
treed7ed01a7a4d6f10584c70c962abc0ef1fe36ca84 /time.c
parent53cffba8cb3ee3e38eaed5b5679d9bdc5bc8a11e (diff)
downloadruby-5669377a571b992a25c4ee98c7685e8c7d4c6ec0.tar.gz
* 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
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,