summaryrefslogtreecommitdiff
path: root/ext/socket/getaddrinfo.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-06-03 15:52:28 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-06-03 15:52:28 +0000
commit5df72288f8ec3d6f2047273281fb6abfff47cc97 (patch)
treebe3080f670073b9485c4a4bddf968b240ec70217 /ext/socket/getaddrinfo.c
parenta52442f27ea7892be7491cf692b4f64462c83155 (diff)
* ext/socket/addrinfo.h: typo.
* ext/socket/getaddrinfo.c (gai_strerror): get rid of warning. * ext/socket/socket.c (init_inetsock): ensures resources are freed at exceptions. * ext/socket/socket.c (init_unixsock): ditto. * ext/socket/socket.c (udp_connect): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/getaddrinfo.c')
-rw-r--r--ext/socket/getaddrinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/getaddrinfo.c b/ext/socket/getaddrinfo.c
index fa060ad..eddb67e 100644
--- a/ext/socket/getaddrinfo.c
+++ b/ext/socket/getaddrinfo.c
@@ -200,7 +200,7 @@ gai_strerror(ecode)
{
if (ecode < 0 || ecode > EAI_MAX)
ecode = EAI_MAX;
- return ai_errlist[ecode];
+ return (char *)ai_errlist[ecode];
}
void