From bc6a1d8dcfae8b3cdc85fd1f7e6ba66a88a2a867 Mon Sep 17 00:00:00 2001 From: usa Date: Wed, 21 Jun 2006 08:32:22 +0000 Subject: * ext/socket/getaddrinfo.c (freeaddrinfo, get_name): fixed typo. * ext/tk/tcltklib.c (tcl_eval, tcl_global_eva): ditto. * ext/zlib/zlib.c (rscheck): constified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/zlib/zlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/zlib') diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index c54e83eac0..68d947d052 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -2983,7 +2983,7 @@ gzreader_skip_linebreaks(struct gzfile *gz) } static void -rscheck(char *rsptr, long rslen, VALUE rs) +rscheck(const char *rsptr, long rslen, VALUE rs) { if (RSTRING(rs)->ptr != rsptr && RSTRING(rs)->len != rslen) rb_raise(rb_eRuntimeError, "rs modified"); -- cgit v1.2.3