summaryrefslogtreecommitdiffstats
path: root/include/netdb.h
diff options
context:
space:
mode:
authorphantom <phantom@FreeBSD.org>2005-02-14 11:33:12 +0000
committerphantom <phantom@FreeBSD.org>2005-02-14 11:33:12 +0000
commiteb29a7bac4636e6bec3a03173f13a68d2f0c8446 (patch)
tree0eeb069d09cbd153386f855dc2323f366df7f0fb /include/netdb.h
parent4548946acd47afa9ed8af3978827f3de56d9034e (diff)
downloadFreeBSD-src-eb29a7bac4636e6bec3a03173f13a68d2f0c8446.zip
FreeBSD-src-eb29a7bac4636e6bec3a03173f13a68d2f0c8446.tar.gz
. Convert return type of gai_strerror() to 'const char *' as POSIX requires.
. Convert ai_errlist[] to simple 'char *' array, and appropriately optimize gai_strerror()
Diffstat (limited to 'include/netdb.h')
-rw-r--r--include/netdb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/netdb.h b/include/netdb.h
index 4278794..57cd70b 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);
OpenPOWER on IntegriCloud