Dolda2000 GitWeb
/
doldaconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated spec files for the new library version.
[doldaconnect.git]
/
lib
/
python
/
dolmod.c
diff --git
a/lib/python/dolmod.c
b/lib/python/dolmod.c
index
fd026fa
..
c8df522
100644
(file)
--- 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)
{
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;
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;
case DC_LOGIN_ERR_AUTHFAIL:
errstr = "authfail";
break;
+ default:
+ errstr = "unknown";
+ break;
}
pyerr = PyString_FromString(errstr);
if(reason == NULL)
}
pyerr = PyString_FromString(errstr);
if(reason == NULL)