Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/net capitalize the first word of most error strings...



details:   https://anonhg.NetBSD.org/src/rev/80219119e0c1
branches:  trunk
changeset: 474343:80219119e0c1
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sun Jul 04 02:02:29 1999 +0000

description:
capitalize the first word of most error strings except those words that are
argument names to the function. e.g, if `const char *servname' is an argument
name, keep using "servname invalid [...]" instead of "Servname invalid [...]"

diffstat:

 lib/libc/net/getaddrinfo.c |  24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diffs (42 lines):

diff -r 5ae7eba119b0 -r 80219119e0c1 lib/libc/net/getaddrinfo.c
--- a/lib/libc/net/getaddrinfo.c        Sun Jul 04 02:01:15 1999 +0000
+++ b/lib/libc/net/getaddrinfo.c        Sun Jul 04 02:02:29 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getaddrinfo.c,v 1.6 1999/07/04 00:43:43 itojun Exp $   */
+/*     $NetBSD: getaddrinfo.c,v 1.7 1999/07/04 02:02:29 lukem Exp $    */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -128,21 +128,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       */
+       "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     */
+       "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        */
+       "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