about summary refs log tree commit diff
path: root/resolv/herror.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-12-21 04:07:21 +0000
committerUlrich Drepper <drepper@redhat.com>2005-12-21 04:07:21 +0000
commite1545188b3fad8a17fd2639cee0848da13c4de33 (patch)
treecd325eb96166b8b690705a12751097c24819b4f4 /resolv/herror.c
parent31d7b14cfa14f85fe4533d4e1c81fe2b1fb32a45 (diff)
downloadglibc-e1545188b3fad8a17fd2639cee0848da13c4de33.tar.gz
glibc-e1545188b3fad8a17fd2639cee0848da13c4de33.tar.xz
glibc-e1545188b3fad8a17fd2639cee0848da13c4de33.zip
* resolv/herror.c (h_errlist): Mark as const.
	(h_nerr): Likewise.
Diffstat (limited to 'resolv/herror.c')
-rw-r--r--resolv/herror.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/resolv/herror.c b/resolv/herror.c
index a61a3a9a4d..c143cec28c 100644
--- a/resolv/herror.c
+++ b/resolv/herror.c
@@ -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 --