diff options
| author | millert <> | 2005-03-02 12:26:24 +0000 |
|---|---|---|
| committer | millert <> | 2005-03-02 12:26:24 +0000 |
| commit | 0f9ba3bccb669637bb508e79c1510c798a5b85ad (patch) | |
| tree | e73e211bb23a1f84ef7f1df4e59787fcd457b17e /src | |
| parent | c37c75dbbd648a671876a8ff5855121edd41e12b (diff) | |
| download | openbsd-0f9ba3bccb669637bb508e79c1510c798a5b85ad.tar.gz openbsd-0f9ba3bccb669637bb508e79c1510c798a5b85ad.tar.bz2 openbsd-0f9ba3bccb669637bb508e79c1510c798a5b85ad.zip | |
More const in h_errlist and h_nerr; Francois Perrad
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libc/net/herror.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libc/net/herror.c b/src/lib/libc/net/herror.c index e8f6fa28fc..64d4d55486 100644 --- a/src/lib/libc/net/herror.c +++ b/src/lib/libc/net/herror.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: herror.c,v 1.5 2003/06/02 20:18:35 millert Exp $ */ | 1 | /* $OpenBSD: herror.c,v 1.6 2005/03/02 12:26:24 millert Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * ++Copyright++ 1987, 1993 | 4 | * ++Copyright++ 1987, 1993 |
| @@ -56,7 +56,7 @@ | |||
| 56 | static char sccsid[] = "@(#)herror.c 8.1 (Berkeley) 6/4/93"; | 56 | static char sccsid[] = "@(#)herror.c 8.1 (Berkeley) 6/4/93"; |
| 57 | static char rcsid[] = "$From: herror.c,v 8.3 1996/08/05 08:31:35 vixie Exp $"; | 57 | static char rcsid[] = "$From: herror.c,v 8.3 1996/08/05 08:31:35 vixie Exp $"; |
| 58 | #else | 58 | #else |
| 59 | static char rcsid[] = "$OpenBSD: herror.c,v 1.5 2003/06/02 20:18:35 millert Exp $"; | 59 | static char rcsid[] = "$OpenBSD: herror.c,v 1.6 2005/03/02 12:26:24 millert Exp $"; |
| 60 | #endif | 60 | #endif |
| 61 | #endif /* LIBC_SCCS and not lint */ | 61 | #endif /* LIBC_SCCS and not lint */ |
| 62 | 62 | ||
| @@ -67,14 +67,14 @@ static char rcsid[] = "$OpenBSD: herror.c,v 1.5 2003/06/02 20:18:35 millert Exp | |||
| 67 | #include <unistd.h> | 67 | #include <unistd.h> |
| 68 | #include <string.h> | 68 | #include <string.h> |
| 69 | 69 | ||
| 70 | const char *h_errlist[] = { | 70 | const char * const h_errlist[] = { |
| 71 | "Resolver Error 0 (no error)", | 71 | "Resolver Error 0 (no error)", |
| 72 | "Unknown host", /* 1 HOST_NOT_FOUND */ | 72 | "Unknown host", /* 1 HOST_NOT_FOUND */ |
| 73 | "Host name lookup failure", /* 2 TRY_AGAIN */ | 73 | "Host name lookup failure", /* 2 TRY_AGAIN */ |
| 74 | "Unknown server error", /* 3 NO_RECOVERY */ | 74 | "Unknown server error", /* 3 NO_RECOVERY */ |
| 75 | "No address associated with name", /* 4 NO_ADDRESS */ | 75 | "No address associated with name", /* 4 NO_ADDRESS */ |
| 76 | }; | 76 | }; |
| 77 | int h_nerr = { sizeof h_errlist / sizeof h_errlist[0] }; | 77 | const int h_nerr = { sizeof h_errlist / sizeof h_errlist[0] }; |
| 78 | 78 | ||
| 79 | extern int h_errno; | 79 | extern int h_errno; |
| 80 | 80 | ||
