summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-31 09:28:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-31 09:28:20 +0000
commit1378795e08d34af6e17cb8ed493f3a1d6693c064 (patch)
treee0ed4dc43f0d2513c4310696045d2af86baaa6de /time.c
parentf3c0922a5a2b79ac4e131078adfa2a6314cfb133 (diff)
* suppress warnings with -Wwrite-string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16716 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 3792701b06..492f1c8e4c 100644
--- a/time.c
+++ b/time.c
@@ -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",
};