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

index 5bd4ed593d7a6f0140b6690ba7884741d4d38faf..236603ae50008a1f9a20c2af5beb9e69b9b17271 100644 (file)
@@ -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",