summaryrefslogtreecommitdiffstats
path: root/source4/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-11-28 22:41:34 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:46:40 +0100
commitf023784d066f25135c2e54e91475418e80070873 (patch)
tree4b27669e721ff1efaf1b3dac059cbef1d47e1be8 /source4/lib
parent16325f13395a48daa9c0a8cb58b354e552776fce (diff)
downloadsamba-f023784d066f25135c2e54e91475418e80070873.tar.gz
samba-f023784d066f25135c2e54e91475418e80070873.tar.xz
samba-f023784d066f25135c2e54e91475418e80070873.zip
r26187: Fix module name, indentation.
(This used to be commit ef790ebf3a712dbbb85d6af65c804199c2c084fc)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/ldb.i2
-rw-r--r--source4/lib/talloc/talloc.i2
2 files changed, 3 insertions, 1 deletions
diff --git a/source4/lib/ldb/ldb.i b/source4/lib/ldb/ldb.i
index 9dd8f7c8afe..aec4e2294f8 100644
--- a/source4/lib/ldb/ldb.i
+++ b/source4/lib/ldb/ldb.i
@@ -513,7 +513,7 @@ fail:
#ifdef SWIGPYTHON
%typemap(in,numinputs=0) struct ldb_result **result_as_bool (struct ldb_result *tmp) { $1 = &tmp; }
%typemap(argout) struct ldb_result **result_as_bool { $result = ((*$1)->count > 0)?Py_True:Py_False; }
- %typemap(freearg) struct ldb_result **result_as_bool { talloc_free(*$1); }
+ %typemap(freearg) struct ldb_result **result_as_bool { talloc_free(*$1); }
ldb_error __contains__(ldb_dn *dn, struct ldb_result **result_as_bool)
{
return ldb_search($self, dn, LDB_SCOPE_BASE, NULL, NULL,
diff --git a/source4/lib/talloc/talloc.i b/source4/lib/talloc/talloc.i
index c35d5d24116..593c20465ee 100644
--- a/source4/lib/talloc/talloc.i
+++ b/source4/lib/talloc/talloc.i
@@ -19,6 +19,8 @@
/* Don't expose talloc contexts in Python code. Python does reference
counting for us, so just create a new top-level talloc context.
*/
+%module talloc;
+
%typemap(in, numinputs=0) TALLOC_CTX * {
$1 = NULL;
}