diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2009-03-01 16:41:57 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2009-03-01 16:41:57 +0100 |
commit | 4903d20c215a01f70c242cb8cf4d455d0e352b7f (patch) | |
tree | 75e0ff6c58546ee4e1d68d3b677c7c75e56fcb68 /lib/tevent/pytevent.c | |
parent | 9f6e2d64852026d118c717d80236177fd74331eb (diff) | |
parent | 09ac816b36e45fd537af2f7fe7c57a11f5c744f5 (diff) | |
download | samba-4903d20c215a01f70c242cb8cf4d455d0e352b7f.tar.gz samba-4903d20c215a01f70c242cb8cf4d455d0e352b7f.tar.xz samba-4903d20c215a01f70c242cb8cf4d455d0e352b7f.zip |
Merge branch 'master' of git://git.samba.org/samba into convenience
Diffstat (limited to 'lib/tevent/pytevent.c')
-rw-r--r-- | lib/tevent/pytevent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tevent/pytevent.c b/lib/tevent/pytevent.c index 3b45ba1928..fe7e7e3e38 100644 --- a/lib/tevent/pytevent.c +++ b/lib/tevent/pytevent.c @@ -29,7 +29,6 @@ #include <tevent.h> #include <stdbool.h> -#include "tevent_util.h" typedef struct { PyObject_HEAD @@ -54,7 +53,8 @@ static PyObject *py_backend_list(PyObject *self) PyObject *ret; int i, len; - len = ev_str_list_length(backends); + for (len = 0; backends[len]; len++); + ret = PyList_New(len); for (i = 0; i < len; i++) PyList_SetItem(ret, i, PyString_FromString(backends[i])); |