diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-09 02:26:06 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-09 02:26:06 +0000 |
commit | af4a989a987e1f7a116ee7726be4b9d0e0fac125 (patch) | |
tree | 8baf481eef954bf9285bc756ce9e928733125793 /cont.c | |
parent | cd4fc5be39d86196d529f9c464d9c87e0b73d66d (diff) | |
download | ruby-af4a989a987e1f7a116ee7726be4b9d0e0fac125.tar.gz |
* cont.c (cont_memsize, fiber_memsize): constified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'cont.c')
-rw-r--r-- | cont.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -130,7 +130,7 @@ cont_free(void *ptr) static size_t cont_memsize(const void *ptr) { - rb_context_t *cont = ptr; + const rb_context_t *cont = ptr; size_t size = 0; if (cont) { size = sizeof(*cont); @@ -208,7 +208,7 @@ fiber_free(void *ptr) static size_t fiber_memsize(const void *ptr) { - rb_fiber_t *fib = ptr; + const rb_fiber_t *fib = ptr; size_t size = 0; if (ptr) { size = sizeof(*fib); |