aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexey Zelkin <phantom@FreeBSD.org>2005-02-14 11:33:12 +0000
committerAlexey Zelkin <phantom@FreeBSD.org>2005-02-14 11:33:12 +0000
commited613866044549950db401e34f5ecb974e1c8043 (patch)
tree0eeb069d09cbd153386f855dc2323f366df7f0fb /include
parent03c51c7e90c192fe56da7dc5404674eef77c7a64 (diff)
downloadsrc-ed613866044549950db401e34f5ecb974e1c8043.tar.gz
src-ed613866044549950db401e34f5ecb974e1c8043.zip
. 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')
-rw-r--r--include/netdb.h2
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);