diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/socket/addrinfo.h | 2 | ||||
-rw-r--r-- | ext/socket/getaddrinfo.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/socket/addrinfo.h b/ext/socket/addrinfo.h index 6000a466ba..aaa309cfdd 100644 --- a/ext/socket/addrinfo.h +++ b/ext/socket/addrinfo.h @@ -154,7 +154,7 @@ extern int getnameinfo __P(( extern void freehostent __P((struct hostent *)); extern void freeaddrent __P((struct addrinfo *)); -extern char *gai_strerror __P((int)); +extern const char *gai_strerror __P((int)); /* In case there is no definition of offsetof() provided - though any proper Standard C system should have one. */ diff --git a/ext/socket/getaddrinfo.c b/ext/socket/getaddrinfo.c index d518017bc8..863d31ea6e 100644 --- a/ext/socket/getaddrinfo.c +++ b/ext/socket/getaddrinfo.c @@ -191,7 +191,7 @@ if (pai->ai_flags & AI_CANONNAME) {\ #define ERR(err) { error = (err); goto bad; } -char * +const char * gai_strerror(ecode) int ecode; { |