diff options
author | Alexey Zelkin <phantom@FreeBSD.org> | 2005-02-14 11:33:12 +0000 |
---|---|---|
committer | Alexey Zelkin <phantom@FreeBSD.org> | 2005-02-14 11:33:12 +0000 |
commit | ed613866044549950db401e34f5ecb974e1c8043 (patch) | |
tree | 0eeb069d09cbd153386f855dc2323f366df7f0fb /include/netdb.h | |
parent | 03c51c7e90c192fe56da7dc5404674eef77c7a64 (diff) |
. Convert return type of gai_strerror() to 'const char *' as POSIX requires.
. Convert ai_errlist[] to simple 'char *' array, and appropriately
optimize gai_strerror()
Notes
Notes:
svn path=/head/; revision=141908
Diffstat (limited to 'include/netdb.h')
-rw-r--r-- | include/netdb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/netdb.h b/include/netdb.h index 4278794af072..57cd70b0b023 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -247,7 +247,7 @@ int getaddrinfo(const char *, const char *, int getnameinfo(const struct sockaddr *, socklen_t, char *, size_t, char *, size_t, int); void freeaddrinfo(struct addrinfo *); -char *gai_strerror(int); +const char *gai_strerror(int); void setnetgrent(const char *); void setservent(int); |