diff options
Diffstat (limited to 'ext/socket/option.c')
-rw-r--r-- | ext/socket/option.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/socket/option.c b/ext/socket/option.c index 7d62d73ff5..55f849f3dd 100644 --- a/ext/socket/option.c +++ b/ext/socket/option.c @@ -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; |