mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/ancdata.c (anc_inspect_socket_creds): refactored to avoid
a rb_str_cat2 call. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
df0f575e1d
commit
ba75dd6b95
2 changed files with 7 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Feb 10 20:56:07 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/ancdata.c (anc_inspect_socket_creds): refactored to avoid
|
||||
a rb_str_cat2 call.
|
||||
|
||||
Tue Feb 10 04:34:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* configure.in (when): makes parentheses balanced.
|
||||
|
|
|
@ -457,8 +457,7 @@ anc_inspect_socket_creds(int level, int type, VALUE data, VALUE ret)
|
|||
rb_str_catf(ret, " gid=%u", cred.cmcred_gid);
|
||||
if (cred.cmcred_ngroups) {
|
||||
int i;
|
||||
const char *sep = "=";
|
||||
rb_str_cat2(ret, " groups");
|
||||
const char *sep = " groups=";
|
||||
for (i = 0; i < cred.cmcred_ngroups; i++) {
|
||||
rb_str_catf(ret, "%s%u", sep, cred.cmcred_groups[i]);
|
||||
sep = ",";
|
||||
|
@ -481,8 +480,7 @@ anc_inspect_socket_creds(int level, int type, VALUE data, VALUE ret)
|
|||
rb_str_catf(ret, " egid=%u", cred->sc_egid);
|
||||
if (cred0.sc_ngroups) {
|
||||
int i;
|
||||
const char *sep = "=";
|
||||
rb_str_cat2(ret, " groups");
|
||||
const char *sep = " groups=";
|
||||
for (i = 0; i < cred0.sc_ngroups; i++) {
|
||||
rb_str_catf(ret, "%s%u", sep, cred->sc_groups[i]);
|
||||
sep = ",";
|
||||
|
|
Loading…
Reference in a new issue