1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/socket/option.c (sockopt_inspect): use rb_str_cat2 and

rb_str_append.

* ext/socket/ancdata.c (ancillary_inspect): refined.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2010-05-04 03:39:36 +00:00
parent f1192452a9
commit 622f45fccb
3 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,10 @@
Tue May 4 12:38:40 2010 Tanaka Akira <akr@fsij.org>
* ext/socket/option.c (sockopt_inspect): use rb_str_cat2 and
rb_str_append.
* ext/socket/ancdata.c (ancillary_inspect): refined.
Tue May 4 11:48:06 2010 Tanaka Akira <akr@fsij.org>
* ext/socket/ancdata.c (ancillary_inspect): use rb_str_cat2 and

View file

@ -1066,9 +1066,8 @@ ancillary_inspect(VALUE self)
}
if (!inspected) {
data = rb_str_dump(data);
rb_str_cat2(ret, " ");
rb_str_append(ret, data);
rb_str_append(ret, rb_str_dump(data));
}
rb_str_cat2(ret, ">");

View file

@ -633,8 +633,8 @@ sockopt_inspect(VALUE self)
}
if (!inspected) {
data = rb_str_dump(data);
rb_str_catf(ret, " %s", StringValueCStr(data));
rb_str_cat2(ret, " ");
rb_str_append(ret, rb_str_dump(data));
}
rb_str_cat2(ret, ">");