aboutsummaryrefslogtreecommitdiffstats
path: root/enc/trans/escape.trans
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-14 18:35:17 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-14 18:35:17 +0000
commitc767be3039c9d511cc01541a7560896404e2ab80 (patch)
tree376bb5e7a4966dd710851ea524de5d9883bf2c2b /enc/trans/escape.trans
parenta3c8c0adec2ccf37ffe88fa542cd9db650aa31bf (diff)
downloadruby-c767be3039c9d511cc01541a7560896404e2ab80.tar.gz
* transcode_data.h: return output functions ssize_t.
* transcode.c (transcode_restartable0): don't need to cast the result of output functions. * enc/trans/newline.trans: follow the type change. * enc/trans/escape.trans: ditto. * enc/trans/utf_16_32.trans: ditto. * enc/trans/iso2022.trans: ditto. * enc/trans/japanese.trans: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/trans/escape.trans')
-rw-r--r--enc/trans/escape.trans4
1 files changed, 2 insertions, 2 deletions
diff --git a/enc/trans/escape.trans b/enc/trans/escape.trans
index d390942c51..f45f27bc41 100644
--- a/enc/trans/escape.trans
+++ b/enc/trans/escape.trans
@@ -43,7 +43,7 @@ escape_xml_attr_quote_init(void *statep)
return 0;
}
-static int
+static ssize_t
fun_so_escape_xml_attr_quote(void *statep, const unsigned char *s, size_t l, unsigned char *o, size_t osize)
{
unsigned char *sp = statep;
@@ -56,7 +56,7 @@ fun_so_escape_xml_attr_quote(void *statep, const unsigned char *s, size_t l, uns
return n;
}
-static int
+static ssize_t
escape_xml_attr_quote_finish(void *statep, unsigned char *o, size_t osize)
{
unsigned char *sp = statep;