summaryrefslogtreecommitdiff
path: root/ext/socket/socket.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-05 06:32:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-05 06:32:04 +0000
commit7918dc352f5e93bc660e5083be638f38e07f7205 (patch)
tree70545ad60e7a3935ff20ec638090ceed8bd30e97 /ext/socket/socket.c
parentdb45ec9845c1dee557e035f4c79290b1d6c3fb9e (diff)
socket.c: suppress warnings
* ext/socket/socket.c (socket_s_ip_address_list): suppress warnings to assign pointers to literal strings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/socket.c')
-rw-r--r--ext/socket/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index 1ebeef7106..2e7bf96c87 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -1789,7 +1789,7 @@ socket_s_ip_address_list(VALUE self)
int ret;
struct lifnum ln;
struct lifconf lc;
- char *reason = NULL;
+ const char *reason = NULL;
int save_errno;
int i;
VALUE list = Qnil;