From: Fredrik Tolf Date: Thu, 14 Feb 2008 05:27:15 +0000 (+0100) Subject: Cleaned up the Python module a bit. X-Git-Tag: 1.1~14 X-Git-Url: http://dolda2000.com/gitweb/?p=doldaconnect.git;a=commitdiff_plain;h=b23dedf9f35fe5ff61f0f826ed1b2753ad78db2f Cleaned up the Python module a bit. --- diff --git a/lib/python/dolmod.c b/lib/python/dolmod.c index fd026fa..c8df522 100644 --- a/lib/python/dolmod.c +++ b/lib/python/dolmod.c @@ -235,7 +235,7 @@ static int qcmd_cb(struct dc_response *resp) static PyObject *mod_qcmd(PyObject *self, PyObject *args, PyObject *kwargs) { - int i, tag; + int i; wchar_t **toks, *tok, *cmd; size_t tokssize, toksdata, toksize; PyObject *c, *n, *cb, *ret; @@ -310,6 +310,9 @@ static void login_cb(int err, wchar_t *reason, PyObject *cb) case DC_LOGIN_ERR_AUTHFAIL: errstr = "authfail"; break; + default: + errstr = "unknown"; + break; } pyerr = PyString_FromString(errstr); if(reason == NULL)