[svn] commit: r3074 - in /trunk/src/lib/dns/python: opcode_python.cc rcode_python.cc

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Sep 30 02:19:03 UTC 2010


Author: jinmei
Date: Thu Sep 30 02:19:03 2010
New Revision: 3074

Log:
corrected type mismatches in variable initialization
should be sufficiently trivial, so directly committing to trunk.
this change should fix build errors with sunstudio C++ compiler.

Modified:
    trunk/src/lib/dns/python/opcode_python.cc
    trunk/src/lib/dns/python/rcode_python.cc

Modified: trunk/src/lib/dns/python/opcode_python.cc
==============================================================================
--- trunk/src/lib/dns/python/opcode_python.cc (original)
+++ trunk/src/lib/dns/python/opcode_python.cc Thu Sep 30 02:19:03 2010
@@ -45,8 +45,8 @@
 
 PyObject* Opcode_getCode(const s_Opcode* const self);
 PyObject* Opcode_toText(const s_Opcode* const self);
-PyObject* Opcode_str(PyObject* const self);
-PyObject* Opcode_QUERY(const s_Opcode* self);
+PyObject* Opcode_str(PyObject* self);
+PyObject* Opcode_QUERY(const Opcode* self);
 PyObject* Opcode_IQUERY(const s_Opcode* self);
 PyObject* Opcode_STATUS(const s_Opcode* self);
 PyObject* Opcode_RESERVED3(const s_Opcode* self);
@@ -202,7 +202,7 @@
 }
 
 PyObject*
-Opcode_str(PyObject* const self) {
+Opcode_str(PyObject* self) {
     // Simply call the to_text method we already defined
     return (PyObject_CallMethod(self,
                                 const_cast<char*>("to_text"),

Modified: trunk/src/lib/dns/python/rcode_python.cc
==============================================================================
--- trunk/src/lib/dns/python/rcode_python.cc (original)
+++ trunk/src/lib/dns/python/rcode_python.cc Thu Sep 30 02:19:03 2010
@@ -54,7 +54,7 @@
 PyObject* Rcode_getCode(const s_Rcode* const self);
 PyObject* Rcode_getExtendedCode(const s_Rcode* const self);
 PyObject* Rcode_toText(const s_Rcode* const self);
-PyObject* Rcode_str(PyObject* const self);
+PyObject* Rcode_str(PyObject* self);
 PyObject* Rcode_NOERROR(const s_Rcode* self);
 PyObject* Rcode_FORMERR(const s_Rcode* self);
 PyObject* Rcode_SERVFAIL(const s_Rcode* self);
@@ -237,7 +237,7 @@
 }
 
 PyObject*
-Rcode_str(PyObject* const self) {
+Rcode_str(PyObject* self) {
     // Simply call the to_text method we already defined
     return (PyObject_CallMethod(self, const_cast<char*>("to_text"),
                                 const_cast<char*>("")));




More information about the bind10-changes mailing list