summaryrefslogtreecommitdiffstats
path: root/transcode.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-13 15:49:30 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-13 15:49:30 +0000
commit83dbb4d2f6896aec4324667d13110791c1382949 (patch)
tree856ef68a931ec893832da92d84362ca2c7ce178e /transcode.c
parent9f7fde8d86a4d273be82804d09be82d822664729 (diff)
downloadruby-83dbb4d2f6896aec4324667d13110791c1382949.tar.gz
ruby-83dbb4d2f6896aec4324667d13110791c1382949.tar.xz
ruby-83dbb4d2f6896aec4324667d13110791c1382949.zip
* transcode.c (rb_trans_open): constified.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'transcode.c')
-rw-r--r--transcode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/transcode.c b/transcode.c
index 6e7a9368b..76f4e6899 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;