summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-10-24 19:52:01 +0200
committerStefan Metzmacher <metze@samba.org>2010-10-24 19:21:25 +0000
commit177aad556f4be8b6b82eec8fbf0bf4711ae32d2b (patch)
treedccc41848e549c26ebb96d97ef99754272d944ed /lib
parentcbee24b2da4e067d751c3f8d30bf34a8cc1e08d0 (diff)
downloadsamba-177aad556f4be8b6b82eec8fbf0bf4711ae32d2b.tar.gz
samba-177aad556f4be8b6b82eec8fbf0bf4711ae32d2b.tar.bz2
samba-177aad556f4be8b6b82eec8fbf0bf4711ae32d2b.zip
talloc: pytalloc should not depend on samba specific code
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Oct 24 19:21:25 UTC 2010 on sn-devel-104
Diffstat (limited to 'lib')
-rw-r--r--lib/talloc/pytalloc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/talloc/pytalloc.c b/lib/talloc/pytalloc.c
index ae59b69625..d5ef919bb2 100644
--- a/lib/talloc/pytalloc.c
+++ b/lib/talloc/pytalloc.c
@@ -21,8 +21,7 @@
#include "replace.h"
#include <talloc.h>
#include "pytalloc.h"
-#include "lib/util/debug.h"
-#include "lib/util/util.h"
+#include <assert.h>
/**
* Simple dealloc for talloc-wrapping PyObjects
@@ -30,7 +29,7 @@
void py_talloc_dealloc(PyObject* self)
{
py_talloc_Object *obj = (py_talloc_Object *)self;
- SMB_ASSERT(talloc_unlink(NULL, obj->talloc_ctx) != -1);
+ assert(talloc_unlink(NULL, obj->talloc_ctx) != -1);
obj->talloc_ctx = NULL;
self->ob_type->tp_free(self);
}