summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-25 03:29:25 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-25 03:29:25 +0000
commitdd43561fd6d7d816e6a8e8b045305fe560961040 (patch)
treebe9e7b23249eb00975e43694e7d4fc8ddb6da058 /string.c
parent43b9684962629fb035275d9d362207f5361e809b (diff)
* string.c (rb_str_each_line): constified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index f9730012c5..3166f595e7 100644
--- a/string.c
+++ b/string.c
@@ -5658,7 +5658,7 @@ rb_str_each_line(int argc, VALUE *argv, VALUE str)
rb_encoding *enc;
VALUE rs;
unsigned int newline;
- char *p, *pend, *s, *ptr;
+ const char *p, *pend, *s, *ptr;
long len, rslen;
VALUE line;
int n;