diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-10 03:57:23 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-10 03:57:23 +0000 |
| commit | 009fe6fd84423c9728d3969eefe208cb6c894d61 (patch) | |
| tree | 272e169e0f731b0a70466e751d866f69f21afee0 /ext/socket/option.c | |
| parent | fd257045dbaed7bdae33e18e5f4799cbf65424f1 (diff) | |
| download | ruby-009fe6fd84423c9728d3969eefe208cb6c894d61.tar.gz ruby-009fe6fd84423c9728d3969eefe208cb6c894d61.tar.xz ruby-009fe6fd84423c9728d3969eefe208cb6c894d61.zip | |
* ext/socket/option.c (inspect_local_peercred): constfied.
* ext/socket/ancdata.c (anc_inspect_socket_creds): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/option.c')
| -rw-r--r-- | ext/socket/option.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/option.c b/ext/socket/option.c index eeb292dc7..01a371639 100644 --- a/ext/socket/option.c +++ b/ext/socket/option.c @@ -272,7 +272,7 @@ inspect_local_peercred(int level, int optname, VALUE data, VALUE ret) rb_str_catf(ret, " euid=%u", cred.cr_uid); if (cred.cr_ngroups) { int i; - char *sep = " groups="; + const char *sep = " groups="; for (i = 0; i < cred.cr_ngroups; i++) { rb_str_catf(ret, "%s%u", sep, cred.cr_groups[i]); sep = ","; |
