* ext/socket/ancdata.c (ip_cmsg_type_to_sym): renamed from

cmsg_type_to_sym.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2009-02-09 16:29:16 +00:00
parent b877fc2f15
commit c6ea437727
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Tue Feb 10 01:28:49 2009 Tanaka Akira <akr@fsij.org>
* ext/socket/ancdata.c (ip_cmsg_type_to_sym): renamed from
cmsg_type_to_sym.
Tue Feb 10 01:22:56 2009 Tanaka Akira <akr@fsij.org>
* ext/socket/option.c (sockopt_inspect): refactored.

View File

@ -15,7 +15,7 @@ constant_to_sym(int constant, ID (*intern_const)(int))
}
static VALUE
cmsg_type_to_sym(int level, int cmsg_type)
ip_cmsg_type_to_sym(int level, int cmsg_type)
{
switch (level) {
case SOL_SOCKET:
@ -611,7 +611,7 @@ ancillary_inspect(VALUE self)
else
rb_str_catf(ret, " cmsg_level:%d", level);
vtype = cmsg_type_to_sym(level, type);
vtype = ip_cmsg_type_to_sym(level, type);
if (SYMBOL_P(vtype))
rb_str_catf(ret, " %s", rb_id2name(SYM2ID(vtype)));
else