summaryrefslogtreecommitdiffstats
path: root/src/tools/tools_util.c
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2010-03-21 02:18:48 -0400
committerStephen Gallagher <sgallagh@redhat.com>2010-04-12 09:22:17 -0400
commitd86fc9163127f7c5bd0c3af950fcddff7911867f (patch)
tree87616d3c52142d15be2149ba7f42bd6d20551214 /src/tools/tools_util.c
parent9fc354f7deb3f0de84f0403ec4f212ca18b5e8e8 (diff)
downloadsssd_unused-d86fc9163127f7c5bd0c3af950fcddff7911867f.tar.gz
sssd_unused-d86fc9163127f7c5bd0c3af950fcddff7911867f.tar.xz
sssd_unused-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.c8
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,