]> 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:20:32 +0000 (02:20 +0000)
committerMark Andrews <marka@isc.org>
Wed, 15 Oct 2008 02:20:32 +0000 (02:20 +0000)
bin/dig/dig.c

index 61adee434d9d3f1e67a4c443da22addea4a67fb8..34f0e90a3d81fe4eea132872c824acf058fec072 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: dig.c,v 1.157.2.13.2.38 2008/10/14 00:55:00 marka Exp $ */
+/* $Id: dig.c,v 1.157.2.13.2.39 2008/10/15 02:20:32 marka Exp $ */
 
 #include <config.h>
 #include <stdlib.h>
@@ -67,7 +67,7 @@ static isc_boolean_t short_form = ISC_FALSE, printcmd = ISC_TRUE,
        ip6_int = ISC_FALSE, plusquest = ISC_FALSE, pluscomm = ISC_FALSE,
        multiline = ISC_FALSE, nottl = ISC_FALSE, noclass = ISC_FALSE;
 
-static const char *opcodetext[] = {
+static const char * const opcodetext[] = {
        "QUERY",
        "IQUERY",
        "STATUS",
@@ -86,7 +86,7 @@ static const char *opcodetext[] = {
        "RESERVED15"
 };
 
-static const char *rcodetext[] = {
+static const char * const rcodetext[] = {
        "NOERROR",
        "FORMERR",
        "SERVFAIL",