]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
make the arrays rcodetext and opcodetext readonly. [RT #18196]
authorMark Andrews <marka@isc.org>
Wed, 15 Oct 2008 02:19:18 +0000 (02:19 +0000)
committerMark Andrews <marka@isc.org>
Wed, 15 Oct 2008 02:19:18 +0000 (02:19 +0000)
bin/dig/dig.c

index 0b840ec89ca3fe3038f457ea462dd3e5965d93ba..5cde9c430e602b8ba08eaceb8fda58a911a6aa3c 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: dig.c,v 1.186.18.32 2008/10/14 00:54:40 marka Exp $ */
+/* $Id: dig.c,v 1.186.18.33 2008/10/15 02:19:18 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",