diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-05 06:32:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-05 06:32:04 +0000 |
commit | 8a3ec4824f9ad802d29a5631fd2e9b10a6cf7c02 (patch) | |
tree | 70545ad60e7a3935ff20ec638090ceed8bd30e97 /ext/socket/socket.c | |
parent | 2c20bf55032bc8a2196642bae0bed8419556919f (diff) | |
download | ruby-8a3ec4824f9ad802d29a5631fd2e9b10a6cf7c02.tar.gz |
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.c | 2 |
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; |