summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-03-01 17:13:10 +0100
committerJelmer Vernooij <jelmer@samba.org>2009-03-01 17:13:10 +0100
commit08b180e40e5179cc02d4aa1867d5063f47b85790 (patch)
tree015efb48b4c8cd638505457eeed44d15e5b69931
parent74293f117b08ffefdad78828ad9cfa8f8f6049e0 (diff)
parent09ac816b36e45fd537af2f7fe7c57a11f5c744f5 (diff)
downloadsamba-08b180e40e5179cc02d4aa1867d5063f47b85790.tar.gz
samba-08b180e40e5179cc02d4aa1867d5063f47b85790.tar.xz
samba-08b180e40e5179cc02d4aa1867d5063f47b85790.zip
Merge branch 'master' of ssh://git.samba.org/data/git/samba into talloc-next
-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 3b45ba19287..fe7e7e3e382 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]));