diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2005-03-02 12:26:25 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2005-03-02 12:26:25 +0000 |
commit | 212c431535a3994853fb268844552454fbc0ee5d (patch) | |
tree | a3dde51ce6fdf53fd9f6f70a16ccc96e3f2b820d /lib/libc/net | |
parent | 662140123edcb315364aafe92a5f69a524b8e656 (diff) |
More const in h_errlist and h_nerr; Francois Perrad
Diffstat (limited to 'lib/libc/net')
-rw-r--r-- | lib/libc/net/herror.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/net/herror.c b/lib/libc/net/herror.c index e8f6fa28fca..64d4d55486e 100644 --- a/lib/libc/net/herror.c +++ b/lib/libc/net/herror.c @@ -1,4 +1,4 @@ -/* $OpenBSD: herror.c,v 1.5 2003/06/02 20:18:35 millert Exp $ */ +/* $OpenBSD: herror.c,v 1.6 2005/03/02 12:26:24 millert Exp $ */ /* * ++Copyright++ 1987, 1993 @@ -56,7 +56,7 @@ static char sccsid[] = "@(#)herror.c 8.1 (Berkeley) 6/4/93"; static char rcsid[] = "$From: herror.c,v 8.3 1996/08/05 08:31:35 vixie Exp $"; #else -static char rcsid[] = "$OpenBSD: herror.c,v 1.5 2003/06/02 20:18:35 millert Exp $"; +static char rcsid[] = "$OpenBSD: herror.c,v 1.6 2005/03/02 12:26:24 millert Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -67,14 +67,14 @@ static char rcsid[] = "$OpenBSD: herror.c,v 1.5 2003/06/02 20:18:35 millert Exp #include <unistd.h> #include <string.h> -const char *h_errlist[] = { +const char * const h_errlist[] = { "Resolver Error 0 (no error)", "Unknown host", /* 1 HOST_NOT_FOUND */ "Host name lookup failure", /* 2 TRY_AGAIN */ "Unknown server error", /* 3 NO_RECOVERY */ "No address associated with name", /* 4 NO_ADDRESS */ }; -int h_nerr = { sizeof h_errlist / sizeof h_errlist[0] }; +const int h_nerr = { sizeof h_errlist / sizeof h_errlist[0] }; extern int h_errno; |