diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-02-13 03:52:57 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:48:07 -0500 |
commit | 20df8d8305d2dc50096ae40bbcb16a1e2b5134ea (patch) | |
tree | 409f7402b4ab1cb772ac932f3189b8b69f5cd3b4 /source4/lib/ldb/modules | |
parent | cc3add596c5654cec1f3b0b96bbab1fd3b7be85d (diff) | |
download | samba-20df8d8305d2dc50096ae40bbcb16a1e2b5134ea.tar.gz samba-20df8d8305d2dc50096ae40bbcb16a1e2b5134ea.tar.bz2 samba-20df8d8305d2dc50096ae40bbcb16a1e2b5134ea.zip |
r21305: Change the skel module a little, so make it names clearer.
Andrew Bartlett
(This used to be commit 26758fc24ca0b28e1ed07cc20801175e94362d57)
Diffstat (limited to 'source4/lib/ldb/modules')
-rw-r--r-- | source4/lib/ldb/modules/skel.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source4/lib/ldb/modules/skel.c b/source4/lib/ldb/modules/skel.c index 2adef580b1..8622a22638 100644 --- a/source4/lib/ldb/modules/skel.c +++ b/source4/lib/ldb/modules/skel.c @@ -100,21 +100,22 @@ static int skel_request(struct ldb_module *module, struct ldb_request *req) return ldb_next_request(module, req); } -static int skel_init(struct ldb_module *ctx) +static int skel_init(struct ldb_module *module) { struct private_data *data; - data = talloc(ctx, struct private_data); + data = talloc(module, struct private_data); if (data == NULL) { - return 1; + ldb_oom(module->ldb); + return LDB_ERR_OPERATIONS_ERROR; } data->some_private_data = NULL; - ctx->private_data = data; + module->private_data = data; - talloc_set_destructor (ctx, skel_destructor); + talloc_set_destructor (module, skel_destructor); - return ldb_next_init(ctx); + return ldb_next_init(module); } static const struct ldb_module_ops skel_ops = { |