summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-22 11:09:55 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-22 11:09:55 +0000
commitb8dbbe13fa4d0bbd4b51baa80e4572b35f11cbb2 (patch)
tree34999390473eb06f297a06fad31f6c97f92651f9 /ext
parent1296ac1a2c4691dea1c580118bef6ceb5de5f99b (diff)
downloadruby-b8dbbe13fa4d0bbd4b51baa80e4572b35f11cbb2.tar.gz
ruby-b8dbbe13fa4d0bbd4b51baa80e4572b35f11cbb2.tar.xz
ruby-b8dbbe13fa4d0bbd4b51baa80e4572b35f11cbb2.zip
* ext/socket/option.c (inspect_linger): message refined.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/socket/option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/option.c b/ext/socket/option.c
index a18806141..5563a7d8b 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 {