Avoid warning.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Sat, 14 Apr 2007 17:01:55 +0000 (17:01 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Sat, 14 Apr 2007 17:01:55 +0000 (17:01 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@933 959494ce-11ee-0310-bf91-de5d638817bd

lib/python/dolmod.c

index 4f46682..36910ec 100644 (file)
@@ -402,7 +402,7 @@ static PyObject *mod_checkproto(PyObject *self, PyObject *args)
        PyErr_SetString(PyExc_TypeError, "first argument must be a response object");
        return(NULL);
     }
-    resp = tmp;
+    resp = (struct respobj *)tmp;
     if(dc_checkprotocol(resp->resp, version))
        Py_RETURN_FALSE;
     else