From ac3dcc30da222efb34c565b24518310cb50cd6f1 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 21 Apr 2009 15:32:19 +0000 Subject: * time.c (find_time_t): constified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ time.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index fe8ddce403..e1226f5016 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Apr 22 00:32:16 2009 Nobuyoshi Nakada + + * time.c (find_time_t): constified. + Wed Apr 22 00:11:19 2009 Tanaka Akira * time.c (leap_year_v_p): removed. diff --git a/time.c b/time.c index 973097ef54..a38ca544f5 100644 --- a/time.c +++ b/time.c @@ -48,7 +48,7 @@ static VALUE time_localtime(VALUE); static time_t timegm_noleapsecond(struct tm *tm); static int tmcmp(struct tm *a, struct tm *b); static int vtmcmp(struct vtm *a, struct vtm *b); -static char *find_time_t(struct tm *tptr, int utc_p, time_t *tp); +static const char *find_time_t(struct tm *tptr, int utc_p, time_t *tp); static struct vtm *localtimev(VALUE timev, struct vtm *result); @@ -566,7 +566,7 @@ timegmv(struct vtm *vtm) VALUE timev; struct tm tm; time_t t; - char *errmsg; + const char *errmsg; /* The first leap second is 1972-06-30 23:59:60 UTC. * No leap seconds before. */ @@ -1535,7 +1535,7 @@ timegm_noleapsecond(struct tm *tm) DIV(tm_year+299,400))*86400; } -static char * +static const char * find_time_t(struct tm *tptr, int utc_p, time_t *tp) { time_t guess, guess_lo, guess_hi; -- cgit v1.2.3