diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2004-12-20 22:35:33 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2004-12-20 22:35:33 +0000 |
commit | e69fb15a5060a4a3972a80359904b50809bffec2 (patch) | |
tree | 729eeb16728a43c64c06ddd28d9a7f7940179861 | |
parent | 4a836c8ecfdf047721450373a6a45f9288831c96 (diff) |
gai_strerror() should return const char *; OK deraadt@
-rw-r--r-- | include/netdb.h | 4 | ||||
-rw-r--r-- | lib/libc/net/gai_strerror.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/netdb.h b/include/netdb.h index 17d006c5cf8..96c4afebb22 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -1,4 +1,4 @@ -/* $OpenBSD: netdb.h,v 1.22 2004/11/17 03:57:53 itojun Exp $ */ +/* $OpenBSD: netdb.h,v 1.23 2004/12/20 22:35:32 millert Exp $ */ /* * ++Copyright++ 1980, 1983, 1988, 1993 @@ -311,7 +311,7 @@ int getaddrinfo(const char *, const char *, void freeaddrinfo(struct addrinfo *); int getnameinfo(const struct sockaddr *, socklen_t, char *, size_t, char *, size_t, int); -char *gai_strerror(int); +const char *gai_strerror(int); int net_addrcmp(struct sockaddr *, struct sockaddr *); int getrrsetbyname(const char *, unsigned int, unsigned int, unsigned int, struct rrsetinfo **); void freerrset(struct rrsetinfo *); diff --git a/lib/libc/net/gai_strerror.c b/lib/libc/net/gai_strerror.c index a191cb5b283..767bc2f7e86 100644 --- a/lib/libc/net/gai_strerror.c +++ b/lib/libc/net/gai_strerror.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gai_strerror.c,v 1.5 2001/06/05 02:31:34 deraadt Exp $ */ +/* $OpenBSD: gai_strerror.c,v 1.6 2004/12/20 22:35:32 millert Exp $ */ /* * Copyright (c) 1997-1999, Craig Metz, All rights reserved. @@ -38,7 +38,7 @@ #include <netdb.h> #include <errno.h> -char * +const char * gai_strerror(int errnum) { switch (errnum) { |