diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-06-03 16:02:16 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-06-03 16:02:16 +0000 |
| commit | 42bcfc4a917567de8684ca98d3ec35de2e4b4505 (patch) | |
| tree | cbbe6adb5b2db94b0a69815ba65428f14e9878c3 | |
| parent | 81203d18d4ca38f7860f634382e473b36f4573d7 (diff) | |
| download | ruby-42bcfc4a917567de8684ca98d3ec35de2e4b4505.tar.gz ruby-42bcfc4a917567de8684ca98d3ec35de2e4b4505.tar.xz ruby-42bcfc4a917567de8684ca98d3ec35de2e4b4505.zip | |
* ext/socket/getaddrinfo.c (gai_strerror): make literals const.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 2 | ||||
| -rw-r--r-- | ext/socket/getaddrinfo.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -2,7 +2,7 @@ Tue Jun 4 00:45:50 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net> * 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 freed at exceptions. diff --git a/ext/socket/getaddrinfo.c b/ext/socket/getaddrinfo.c index eddb67e33..0a6af3111 100644 --- a/ext/socket/getaddrinfo.c +++ b/ext/socket/getaddrinfo.c @@ -143,7 +143,7 @@ static int get_addr __P((const char *, int, struct addrinfo **, struct addrinfo *, int)); static int str_isnumber __P((const char *)); -static char *ai_errlist[] = { +static const char *ai_errlist[] = { "success.", "address family for hostname not supported.", /* EAI_ADDRFAMILY */ "temporary failure in name resolution.", /* EAI_AGAIN */ |
