Browse Source

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.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@3074 e5f2f494-b856-4b98-b285-d166d9295462

JINMEI Tatuya 14 years ago
parent
commit
ef62e72058
2 changed files with 5 additions and 5 deletions
  1. 3 3
      src/lib/dns/python/opcode_python.cc
  2. 2 2
      src/lib/dns/python/rcode_python.cc

+ 3 - 3
src/lib/dns/python/opcode_python.cc

@@ -45,8 +45,8 @@ void Opcode_destroy(s_Opcode* const self);
 
 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 @@ Opcode_toText(const s_Opcode* const self) {
 }
 
 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"),

+ 2 - 2
src/lib/dns/python/rcode_python.cc

@@ -54,7 +54,7 @@ void Rcode_destroy(s_Rcode* const self);
 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 @@ Rcode_toText(const s_Rcode* const self) {
 }
 
 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*>("")));