From 7ca101656029196bba41ffff632f2c6903f48125 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 15 Oct 2008 02:16:51 +0000 Subject: [PATCH] make the arrays rcodetext and opcodetext readonly --- bin/dig/dig.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/dig/dig.c b/bin/dig/dig.c index 5bd4ed593d..236603ae50 100644 --- a/bin/dig/dig.c +++ b/bin/dig/dig.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dig.c,v 1.222 2008/10/13 21:18:56 jreed Exp $ */ +/* $Id: dig.c,v 1.223 2008/10/15 02:16:51 marka Exp $ */ /*! \file */ @@ -71,7 +71,7 @@ static isc_boolean_t short_form = ISC_FALSE, printcmd = ISC_TRUE, multiline = ISC_FALSE, nottl = ISC_FALSE, noclass = ISC_FALSE; /*% opcode text */ -static const char *opcodetext[] = { +static const char * const opcodetext[] = { "QUERY", "IQUERY", "STATUS", @@ -91,7 +91,7 @@ static const char *opcodetext[] = { }; /*% return code text */ -static const char *rcodetext[] = { +static const char * const rcodetext[] = { "NOERROR", "FORMERR", "SERVFAIL",