1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/socket/getaddrinfo.c (getaddrinfo): constified.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-08-12 05:08:51 +00:00
parent c2e85dfa8f
commit 0bf6ed0fc8

View file

@ -376,7 +376,7 @@ getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *h
port = htons((unsigned short)atoi(servname));
} else {
struct servent *sp;
char *proto;
const char *proto;
proto = NULL;
switch (pai->ai_socktype) {