Dolda2000 GitWeb
/
doldaconnect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32a9325
)
Cleaned up the Python module a bit.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 14 Feb 2008 05:27:15 +0000
(06:27 +0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 14 Feb 2008 05:27:15 +0000
(06:27 +0100)
lib/python/dolmod.c
patch
|
blob
|
blame
|
history
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)
{
- 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)