summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-02-20 02:57:07 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-02-20 02:57:07 +0100
commit995788536e5ba7b3a0e67e377a9769b279d0b8ae (patch)
tree06fb578a17c9bc81e7a0c53215853f1a4c81bde4 /source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c
parente3661a6181a7fbeffb02745adda509c01779d5ca (diff)
downloadsamba-995788536e5ba7b3a0e67e377a9769b279d0b8ae.tar.gz
samba-995788536e5ba7b3a0e67e377a9769b279d0b8ae.tar.bz2
samba-995788536e5ba7b3a0e67e377a9769b279d0b8ae.zip
Remove more function-based inits.
(This used to be commit b1a7810f3e70f9a831d9b8e85d531e448072adaf)
Diffstat (limited to 'source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c')
-rw-r--r--source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c b/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c
index 1ec3b1aabd..8742e257f3 100644
--- a/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c
+++ b/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c
@@ -1903,7 +1903,7 @@ failed:
return -1;
}
-int ldb_sqlite3_init(void)
-{
- return ldb_register_backend("sqlite3", lsqlite3_connect);
-}
+const struct ldb_backend_ops ldb_sqlite3_backend_ops = {
+ .name = "sqlite3",
+ .connect_fn = lsqlite3_connect
+};