diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-21 15:32:19 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-21 15:32:19 +0000 |
| commit | 71ae5fa293a66a2f4a4e921bb8d9be451cb7e52a (patch) | |
| tree | 3c8aeddefe94b1d1936631f6f3aed960e264e623 | |
| parent | f51be2b787214619ed945cb5be4cdd8620aa26a3 (diff) | |
| download | ruby-71ae5fa293a66a2f4a4e921bb8d9be451cb7e52a.tar.gz ruby-71ae5fa293a66a2f4a4e921bb8d9be451cb7e52a.tar.xz ruby-71ae5fa293a66a2f4a4e921bb8d9be451cb7e52a.zip | |
* time.c (find_time_t): constified.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | time.c | 6 |
2 files changed, 7 insertions, 3 deletions
@@ -1,3 +1,7 @@ +Wed Apr 22 00:32:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * time.c (find_time_t): constified. + Wed Apr 22 00:11:19 2009 Tanaka Akira <akr@fsij.org> * time.c (leap_year_v_p): removed. @@ -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; |
