diff options
author | 2005-03-02 12:26:24 +0000 | |
---|---|---|
committer | 2005-03-02 12:26:24 +0000 | |
commit | c58df6617d59761b096c71b376177f7c3b4ae443 (patch) | |
tree | a2fea812d44d68ed92ef89c4ce7f241cbffa61ae /lib/libc | |
parent | Explicitly leave room for the NUL byte in {wday,mon}_name; Francois Perrad (diff) | |
download | wireguard-openbsd-c58df6617d59761b096c71b376177f7c3b4ae443.tar.xz wireguard-openbsd-c58df6617d59761b096c71b376177f7c3b4ae443.zip |
More const in h_errlist and h_nerr; Francois Perrad
Diffstat (limited to 'lib/libc')
-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; |