From e6eb8f0399a2c004ea2d3cc84e14c67fa790d299 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 13 Aug 2008 15:49:30 +0000 Subject: * transcode.c (rb_trans_open): constified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- transcode.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/transcode.c b/transcode.c index 6e7a9368b9..76f4e68991 100644 --- a/transcode.c +++ b/transcode.c @@ -641,6 +641,7 @@ rb_transcoding_open_by_transcoder(const rb_transcoder *tr, int flags) return tc; } +#if 0 static rb_transcoding * rb_transcoding_open(const char *from, const char *to, int flags) { @@ -653,6 +654,7 @@ rb_transcoding_open(const char *from, const char *to, int flags) return tc; } +#endif static rb_trans_result_t rb_transcoding_convert(rb_transcoding *tc, @@ -750,7 +752,7 @@ rb_trans_open(const char *from, const char *to, int flags) return NULL; if (flags & (CRLF_NEWLINE|CR_NEWLINE)) { - char *name = (flags & CRLF_NEWLINE) ? "crlf_newline" : "cr_newline"; + const char *name = (flags & CRLF_NEWLINE) ? "crlf_newline" : "cr_newline"; transcoder_entry_t *e = get_transcoder_entry("", name); if (!e) return NULL; -- cgit v1.2.3