diff options
author | Simo Sorce <ssorce@redhat.com> | 2010-03-21 02:18:48 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-04-12 09:22:17 -0400 |
commit | d86fc9163127f7c5bd0c3af950fcddff7911867f (patch) | |
tree | 87616d3c52142d15be2149ba7f42bd6d20551214 /src/tools/tools_util.c | |
parent | 9fc354f7deb3f0de84f0403ec4f212ca18b5e8e8 (diff) | |
download | sssd-d86fc9163127f7c5bd0c3af950fcddff7911867f.tar.gz sssd-d86fc9163127f7c5bd0c3af950fcddff7911867f.tar.bz2 sssd-d86fc9163127f7c5bd0c3af950fcddff7911867f.zip |
tools: remove creation of event_context
Since the sysdb is now synchronous and creates its own event context we
don't need an explicit event context anymore in the tools.
Diffstat (limited to 'src/tools/tools_util.c')
-rw-r--r-- | src/tools/tools_util.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/tools/tools_util.c b/src/tools/tools_util.c index 021495f8..e76ffe76 100644 --- a/src/tools/tools_util.c +++ b/src/tools/tools_util.c @@ -44,13 +44,6 @@ static int setup_db(struct tools_ctx *ctx) char *confdb_path; int ret; - /* Create the event context */ - ctx->ev = tevent_context_init(ctx); - if (ctx->ev == NULL) { - DEBUG(1, ("Could not create event context\n")); - return EIO; - } - confdb_path = talloc_asprintf(ctx, "%s/%s", DB_PATH, CONFDB_FILE); if (confdb_path == NULL) { return ENOMEM; @@ -211,7 +204,6 @@ int check_group_names(struct tools_ctx *tctx, ret = EOK; for (i=0; grouplist[i]; ++i) { ret = sysdb_getgrnam_sync(tctx, - tctx->ev, tctx->sysdb, grouplist[i], tctx->local, |