git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1078d2
)
s4:lib/util/util_ldb.c - remove unused "gendb_add_ldif" call
author
Matthias Dieter Wallnöfer
<mdw@samba.org>
Sun, 17 Oct 2010 08:29:46 +0000
(10:29 +0200)
committer
Matthias Dieter Wallnöfer
<mdw@samba.org>
Sun, 17 Oct 2010 08:29:46 +0000
(10:29 +0200)
lib/util/util_ldb.c
patch
|
blob
|
history
diff --git
a/lib/util/util_ldb.c
b/lib/util/util_ldb.c
index 5e50fddf1c4b144d59f993c10f130eec81245e2b..738d50052dd014128431d504c01847b7e6a5dfd4 100644
(file)
--- a/
lib/util/util_ldb.c
+++ b/
lib/util/util_ldb.c
@@
-110,20
+110,3
@@
int gendb_search_dn(struct ldb_context *ldb,
return gendb_search(ldb, mem_ctx, dn, res, attrs, NULL);
}
-/*
- setup some initial ldif in a ldb
-*/
-int gendb_add_ldif(struct ldb_context *ldb, const char *ldif_string)
-{
- struct ldb_ldif *ldif;
- const char *s = ldif_string;
- int ret;
- while (s && *s != '\0') {
- ldif = ldb_ldif_read_string(ldb, &s);
- if (ldif == NULL) return -1;
- ret = ldb_add(ldb, ldif->msg);
- talloc_free(ldif);
- }
- return ret;
-}
-