Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/net remove trailing `.' on error messages, since me...
details: https://anonhg.NetBSD.org/src/rev/93aa66753af2
branches: trunk
changeset: 474305:93aa66753af2
user: lukem <lukem%NetBSD.org@localhost>
date: Sat Jul 03 07:00:42 1999 +0000
description:
remove trailing `.' on error messages, since messages from strerror() and
h_strerror() don't return messages with a trailing `.' (and the `.' looks
ugly when using warnx() with the error message).
diffstat:
lib/libc/net/getaddrinfo.c | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diffs (40 lines):
diff -r 449610909394 -r 93aa66753af2 lib/libc/net/getaddrinfo.c
--- a/lib/libc/net/getaddrinfo.c Sat Jul 03 06:59:28 1999 +0000
+++ b/lib/libc/net/getaddrinfo.c Sat Jul 03 07:00:42 1999 +0000
@@ -126,21 +126,21 @@
static int str_isnumber __P((const char *));
static char *ai_errlist[] = {
- "success.",
- "address family for hostname not supported.", /* EAI_ADDRFAMILY */
- "temporary failure in name resolution.", /* EAI_AGAIN */
- "invalid value for ai_flags.", /* EAI_BADFLAGS */
- "non-recoverable failure in name resolution.", /* EAI_FAIL */
- "ai_family not supported.", /* EAI_FAMILY */
- "memory allocation failure.", /* EAI_MEMORY */
- "no address associated with hostname.", /* EAI_NODATA */
- "hostname nor servname provided, or not known.",/* EAI_NONAME */
- "servname not supported for ai_socktype.", /* EAI_SERVICE */
- "ai_socktype not supported.", /* EAI_SOCKTYPE */
- "system error returned in errno.", /* EAI_SYSTEM */
- "invalid value for hints.", /* EAI_BADHINTS */
- "resolved protocol is unknown.", /* EAI_PROTOCOL */
- "unknown error.", /* EAI_MAX */
+ "success",
+ "address family for hostname not supported", /* EAI_ADDRFAMILY */
+ "temporary failure in name resolution", /* EAI_AGAIN */
+ "invalid value for ai_flags", /* EAI_BADFLAGS */
+ "non-recoverable failure in name resolution", /* EAI_FAIL */
+ "ai_family not supported", /* EAI_FAMILY */
+ "memory allocation failure", /* EAI_MEMORY */
+ "no address associated with hostname", /* EAI_NODATA */
+ "hostname nor servname provided, or not known",/* EAI_NONAME */
+ "servname not supported for ai_socktype", /* EAI_SERVICE */
+ "ai_socktype not supported", /* EAI_SOCKTYPE */
+ "system error returned in errno", /* EAI_SYSTEM */
+ "invalid value for hints", /* EAI_BADHINTS */
+ "resolved protocol is unknown", /* EAI_PROTOCOL */
+ "unknown error", /* EAI_MAX */
};
#define GET_CANONNAME(ai, str) \
Home |
Main Index |
Thread Index |
Old Index