From 160c230f94919299b1270e90b961c04fc06cc255 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 10 Feb 2009 03:57:23 +0000 Subject: * ext/socket/option.c (inspect_local_peercred): constfied. * ext/socket/ancdata.c (anc_inspect_socket_creds): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/socket/option.c') diff --git a/ext/socket/option.c b/ext/socket/option.c index eeb292dc76..01a371639c 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 = ","; -- cgit v1.2.3