summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-14 06:19:57 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-14 06:19:57 +0000
commita23b1f745038f93e5cd2542fbf17b363686ccfd7 (patch)
treeb0374fe6ad0ab3b1d497fff760ae1a13e91508e6
parenta979eb4548bf8b8d7479ba83e4a2f25f77175f4d (diff)
* io.c (rb_io_memsize): constified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--ext/objspace/objspace.c2
-rw-r--r--io.c2
3 files changed, 5 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 1a7df151a5d..b03dcfc33ae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,6 @@
-Sat Aug 14 15:17:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Aug 14 15:19:55 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_memsize): constified.
* regcomp.c (onig_memsize): constified.
diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c
index b557cc9ab32..65fa201d463 100644
--- a/ext/objspace/objspace.c
+++ b/ext/objspace/objspace.c
@@ -33,7 +33,7 @@
size_t rb_str_memsize(VALUE);
size_t rb_ary_memsize(VALUE);
-size_t rb_io_memsize(rb_io_t *);
+size_t rb_io_memsize(const rb_io_t *);
size_t rb_generic_ivar_memsize(VALUE);
size_t rb_objspace_data_type_memsize(VALUE obj);
diff --git a/io.c b/io.c
index e92c88117a0..8fbb6cbc998 100644
--- a/io.c
+++ b/io.c
@@ -3536,7 +3536,7 @@ rb_io_fptr_finalize(rb_io_t *fptr)
size_t rb_econv_memsize(rb_econv_t *);
size_t
-rb_io_memsize(rb_io_t *fptr)
+rb_io_memsize(const rb_io_t *fptr)
{
size_t size = sizeof(rb_io_t);
size += fptr->rbuf_capa;