From b23dedf9f35fe5ff61f0f826ed1b2753ad78db2f Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Thu, 14 Feb 2008 06:27:15 +0100 Subject: [PATCH] Cleaned up the Python module a bit. --- lib/python/dolmod.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.11.0