зеркало из https://github.com/github/ruby.git
* ext/socket/getaddrinfo.c (gai_strerror): make literals const.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
5df72288f8
Коммит
dc010ff515
|
@ -2,7 +2,7 @@ Tue Jun 4 00:45:50 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||||
|
|
||||||
* ext/socket/addrinfo.h: typo.
|
* ext/socket/addrinfo.h: typo.
|
||||||
|
|
||||||
* ext/socket/getaddrinfo.c (gai_strerror): get rid of warning.
|
* ext/socket/getaddrinfo.c (gai_strerror): make literals const.
|
||||||
|
|
||||||
* ext/socket/socket.c (init_inetsock): ensures resources are
|
* ext/socket/socket.c (init_inetsock): ensures resources are
|
||||||
freed at exceptions.
|
freed at exceptions.
|
||||||
|
|
|
@ -143,7 +143,7 @@ static int get_addr __P((const char *, int, struct addrinfo **,
|
||||||
struct addrinfo *, int));
|
struct addrinfo *, int));
|
||||||
static int str_isnumber __P((const char *));
|
static int str_isnumber __P((const char *));
|
||||||
|
|
||||||
static char *ai_errlist[] = {
|
static const char *ai_errlist[] = {
|
||||||
"success.",
|
"success.",
|
||||||
"address family for hostname not supported.", /* EAI_ADDRFAMILY */
|
"address family for hostname not supported.", /* EAI_ADDRFAMILY */
|
||||||
"temporary failure in name resolution.", /* EAI_AGAIN */
|
"temporary failure in name resolution.", /* EAI_AGAIN */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче