[svn] commit: r2377 - /trunk/src/lib/dns/python/message_python.cc

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Jun 30 22:31:57 UTC 2010


Author: jelte
Date: Wed Jun 30 22:31:56 2010
New Revision: 2377

Log:
fix for problem found in solaris build, use "H" (unsigned short) instead of "I" (unsigned int) in parsetuple

Modified:
    trunk/src/lib/dns/python/message_python.cc

Modified: trunk/src/lib/dns/python/message_python.cc
==============================================================================
--- trunk/src/lib/dns/python/message_python.cc (original)
+++ trunk/src/lib/dns/python/message_python.cc Wed Jun 30 22:31:56 2010
@@ -1284,7 +1284,7 @@
 static PyObject*
 Message_setUDPSize(s_Message* self, PyObject* args) {
     uint16_t size;
-    if (!PyArg_ParseTuple(args, "I", &size)) {
+    if (!PyArg_ParseTuple(args, "H", &size)) {
         return (NULL);
     }
     try {
@@ -1307,7 +1307,7 @@
 static PyObject*
 Message_setQid(s_Message* self, PyObject* args) {
     uint16_t id;
-    if (!PyArg_ParseTuple(args, "I", &id)) {
+    if (!PyArg_ParseTuple(args, "H", &id)) {
         return (NULL);
     }
     try {




More information about the bind10-changes mailing list