* resolv/herror.c (h_errlist): Mark as const.
authorUlrich Drepper <drepper@redhat.com>
Wed, 21 Dec 2005 04:07:21 +0000 (04:07 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 21 Dec 2005 04:07:21 +0000 (04:07 +0000)
(h_nerr): Likewise.

ChangeLog
resolv/herror.c

index 0e83532..572b690 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-12-20  Ulrich Drepper  <drepper@redhat.com>
+
+       * resolv/herror.c (h_errlist): Mark as const.
+       (h_nerr): Likewise.
+
 2005-12-15  Thomas Schwinge  <tschwinge@gnu.org>
 
        [BZ #2061]
index a61a3a9..c143cec 100644 (file)
@@ -64,14 +64,14 @@ static const char rcsid[] = "$BINDId: herror.c,v 8.11 1999/10/13 16:39:39 vixie
 #include <libintl.h>
 #include <not-cancel.h>
 
-const char *h_errlist[] = {
+const char *const h_errlist[] = {
        N_("Resolver Error 0 (no error)"),
        N_("Unknown host"),                     /* 1 HOST_NOT_FOUND */
        N_("Host name lookup failure"),         /* 2 TRY_AGAIN */
        N_("Unknown server error"),             /* 3 NO_RECOVERY */
        N_("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] };
 
 /*
  * herror --