summaryrefslogtreecommitdiffstats
path: root/ext/socket/socket.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-25 03:33:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-25 03:33:54 +0000
commit65901ebf87ffe08e05bd6564cdfbeb525286a17a (patch)
tree001499af5dea2e8adecf5e9b08b835720598f6da /ext/socket/socket.c
parent4ed8a857af6da6e6a941a7f9da3db952666ef82a (diff)
downloadruby-65901ebf87ffe08e05bd6564cdfbeb525286a17a.tar.gz
ruby-65901ebf87ffe08e05bd6564cdfbeb525286a17a.tar.xz
ruby-65901ebf87ffe08e05bd6564cdfbeb525286a17a.zip
* ext/socket/socket.c (socket_s_list_ip_address): constified.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21769 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 73d3a85cf..43d4250b0 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -1536,7 +1536,7 @@ socket_s_list_ip_address(VALUE self)
struct ifconf conf;
struct ifreq *req;
VALUE list = Qnil;
- char *reason = NULL;
+ const char *reason = NULL;
int save_errno;
fd = socket(AF_INET, SOCK_DGRAM, 0);