Commit ef62e720 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

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
parent 50f0a76b
......@@ -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"),
......
......@@ -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*>("")));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment