summaryrefslogtreecommitdiff
path: root/lib/tevent
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-03-01 16:38:07 +0100
committerJelmer Vernooij <jelmer@samba.org>2009-03-01 16:38:07 +0100
commit235244f4cc707130dd130afce88bde49606bd501 (patch)
tree339506f386324533b3ddedbd6b3e01e829a15697 /lib/tevent
parent9823b4343d87fc0c45f3c60a49855674fc6ff7c8 (diff)
downloadsamba-235244f4cc707130dd130afce88bde49606bd501.tar.gz
samba-235244f4cc707130dd130afce88bde49606bd501.tar.bz2
samba-235244f4cc707130dd130afce88bde49606bd501.zip
Avoid using tevent_util.h, which won't be available if we use the system
tevent.
Diffstat (limited to 'lib/tevent')
-rw-r--r--lib/tevent/pytevent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tevent/pytevent.c b/lib/tevent/pytevent.c
index 4c0cbfd3cd..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]));