ruby-changes:11608
From: nobu <ko1@a...>
Date: Wed, 22 Apr 2009 00:33:12 +0900 (JST)
Subject: [ruby-changes:11608] Ruby:r23245 (trunk): * time.c (find_time_t): constified.
nobu 2009-04-22 00:32:19 +0900 (Wed, 22 Apr 2009) New Revision: 23245 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23245 Log: * time.c (find_time_t): constified. Modified files: trunk/ChangeLog trunk/time.c Index: time.c =================================================================== --- time.c (revision 23244) +++ time.c (revision 23245) @@ -48,7 +48,7 @@ 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 @@ 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 @@ 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; Index: ChangeLog =================================================================== --- ChangeLog (revision 23244) +++ ChangeLog (revision 23245) @@ -1,3 +1,7 @@ +Wed Apr 22 00:32:16 2009 Nobuyoshi Nakada <nobu@r...> + + * time.c (find_time_t): constified. + Wed Apr 22 00:11:19 2009 Tanaka Akira <akr@f...> * time.c (leap_year_v_p): removed. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/