diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-22 11:09:55 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-22 11:09:55 +0000 |
commit | 80d230c3945a0c79e5215b14c864b1acf503e163 (patch) | |
tree | 34999390473eb06f297a06fad31f6c97f92651f9 | |
parent | 22cef963c31c575dd08b3e7af372f69772372988 (diff) | |
download | ruby-80d230c3945a0c79e5215b14c864b1acf503e163.tar.gz |
* ext/socket/option.c (inspect_linger): message refined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ext/socket/option.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Sun Feb 22 20:09:29 2009 Tanaka Akira <akr@fsij.org> + + * ext/socket/option.c (inspect_linger): message refined. + Sun Feb 22 19:28:08 2009 Tanaka Akira <akr@fsij.org> * ext/socket/init.c (s_recvfrom): use rb_io_wait_readable after diff --git a/ext/socket/option.c b/ext/socket/option.c index a188061418..5563a7d8bb 100644 --- a/ext/socket/option.c +++ b/ext/socket/option.c @@ -272,7 +272,7 @@ inspect_linger(int level, int optname, VALUE data, VALUE ret) if (RSTRING_LEN(data) == sizeof(struct linger)) { struct linger s; memcpy((char*)&s, RSTRING_PTR(data), sizeof(s)); - rb_str_catf(ret, " onoff:%d linger:%d", s.l_onoff, s.l_linger); + rb_str_catf(ret, " %s %dsec", s.l_onoff ? "on" : "off", s.l_linger); return 1; } else { |