ruby-changes:10951
From: akr <ko1@a...>
Date: Sun, 22 Feb 2009 20:10:05 +0900 (JST)
Subject: [ruby-changes:10951] Ruby:r22527 (trunk): * ext/socket/option.c (inspect_linger): message refined.
akr 2009-02-22 20:09:55 +0900 (Sun, 22 Feb 2009) New Revision: 22527 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22527 Log: * ext/socket/option.c (inspect_linger): message refined. Modified files: trunk/ChangeLog trunk/ext/socket/option.c Index: ChangeLog =================================================================== --- ChangeLog (revision 22526) +++ ChangeLog (revision 22527) @@ -1,3 +1,7 @@ +Sun Feb 22 20:09:29 2009 Tanaka Akira <akr@f...> + + * ext/socket/option.c (inspect_linger): message refined. + Sun Feb 22 19:28:08 2009 Tanaka Akira <akr@f...> * ext/socket/init.c (s_recvfrom): use rb_io_wait_readable after Index: ext/socket/option.c =================================================================== --- ext/socket/option.c (revision 22526) +++ ext/socket/option.c (revision 22527) @@ -272,7 +272,7 @@ 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 { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/