Merge from ruby_1_8.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@16719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2008-05-31 11:44:49 +00:00
parent 0d0c31ff84
commit f072d4e34a
32 changed files with 218 additions and 180 deletions

4
time.c
View file

@ -171,7 +171,7 @@ time_timeval(time, interval)
int interval;
{
struct timeval t;
char *tstr = interval ? "time interval" : "time";
const char *tstr = interval ? "time interval" : "time";
#ifndef NEGATIVE_TIME_T
interval = 1;
@ -279,7 +279,7 @@ time_s_at(argc, argv, klass)
return t;
}
static char *months [12] = {
static const char months[][4] = {
"jan", "feb", "mar", "apr", "may", "jun",
"jul", "aug", "sep", "oct", "nov", "dec",
};