summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-11-21 13:07:16 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:45:59 +0100
commit39adc2418a0586261c6c4aea36f72596c6cf8897 (patch)
tree279396139bc8648aee80b0ae32b9ff7a23157593 /source4/lib/ldb
parentf2b9a9ae11f43e4c283a151ca6d2d72f3e4d2283 (diff)
downloadsamba-39adc2418a0586261c6c4aea36f72596c6cf8897.tar.gz
samba-39adc2418a0586261c6c4aea36f72596c6cf8897.tar.bz2
samba-39adc2418a0586261c6c4aea36f72596c6cf8897.zip
r26088: Import some native-python python modules and move original python swig torture code to common python directory as well.
(This used to be commit cbf656ff054ab2b0b5ca81e1d4f16ac54c8098f1)
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/ldb.i5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/lib/ldb/ldb.i b/source4/lib/ldb/ldb.i
index 9a55327a07..b37082af38 100644
--- a/source4/lib/ldb/ldb.i
+++ b/source4/lib/ldb/ldb.i
@@ -553,8 +553,8 @@ int ldb_valid_attr_name(const char *s);
typedef unsigned long time_t;
-%{
-char *timestring(time_t t)
+%inline %{
+static char *timestring(time_t t)
{
char *tresult = ldb_timestring(NULL, t);
char *result = strdup(tresult);
@@ -562,7 +562,6 @@ char *timestring(time_t t)
return result;
}
%}
-char *timestring(time_t t);
%rename(string_to_time) ldb_string_to_time;
time_t ldb_string_to_time(const char *s);