* ext/socket/option.c (inspect_timeval_as_interval): renamed from

inspect_timeval.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2009-02-22 17:27:15 +00:00
Родитель cdca4e19d0
Коммит 0c95958c2d
2 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Mon Feb 23 02:26:44 2009 Tanaka Akira <akr@fsij.org>
* ext/socket/option.c (inspect_timeval_as_interval): renamed from
inspect_timeval.
Mon Feb 23 02:10:09 2009 Tanaka Akira <akr@fsij.org>
* ext/socket/option.c (inspect_timeval): fix the size test.

Просмотреть файл

@ -303,7 +303,7 @@ inspect_socktype(int level, int optname, VALUE data, VALUE ret)
#endif
static int
inspect_timeval(int level, int optname, VALUE data, VALUE ret)
inspect_timeval_as_interval(int level, int optname, VALUE data, VALUE ret)
{
if (RSTRING_LEN(data) == sizeof(struct timeval)) {
struct timeval s;
@ -484,10 +484,10 @@ sockopt_inspect(VALUE self)
case SO_LINGER: inspected = inspect_linger(level, optname, data, ret); break;
# endif
# if defined(SO_RCVTIMEO) /* POSIX */
case SO_RCVTIMEO: inspected = inspect_timeval(level, optname, data, ret); break;
case SO_RCVTIMEO: inspected = inspect_timeval_as_interval(level, optname, data, ret); break;
# endif
# if defined(SO_SNDTIMEO) /* POSIX */
case SO_SNDTIMEO: inspected = inspect_timeval(level, optname, data, ret); break;
case SO_SNDTIMEO: inspected = inspect_timeval_as_interval(level, optname, data, ret); break;
# endif
# if defined(SO_PEERCRED) /* GNU/Linux */
case SO_PEERCRED: inspected = inspect_peercred(level, optname, data, ret); break;