aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-28 14:40:25 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-28 14:40:25 +0000
commit2a05d8c7fb304a24f716458104128b830d435322 (patch)
treeae37541f7a1e51228f3169ebffc3fe17d415d5f9
parent08ec75e4272e0a92c615cc9735c67a0207420602 (diff)
downloadruby-2a05d8c7fb304a24f716458104128b830d435322.tar.gz
* file.c (rb_stat_inspect): constified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--file.c4
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 8e0db96320..46fcca46c7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Sep 28 23:40:04 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_stat_inspect): constified.
+
Wed Sep 28 15:12:28 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
* lib/webrick/cgi.rb (WEBrick::CGI#start): req.query_string should
@@ -8,7 +12,7 @@ Wed Sep 28 15:12:28 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
Wed Sep 28 10:45:44 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
- * ext/tk/tcltklib.c: cannot compile with Tcl/Tk8.0.x [ruby-dev:27335].
+ * ext/tk/tcltklib.c: cannot compile with Tcl/Tk8.0.x [ruby-dev:27335].
Wed Sep 28 07:56:52 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
diff --git a/file.c b/file.c
index ef7356b410..e769f09801 100644
--- a/file.c
+++ b/file.c
@@ -542,8 +542,8 @@ rb_stat_inspect(VALUE self)
{
VALUE str;
int i;
- static struct {
- char *name;
+ static const struct {
+ const char *name;
VALUE (*func)(VALUE);
} member[] = {
{"dev", rb_stat_dev},