diff --git a/ext/socket/socket.c b/ext/socket/socket.c index 73d3a85cf0..43d4250b04 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);