From d86fc9163127f7c5bd0c3af950fcddff7911867f Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sun, 21 Mar 2010 02:18:48 -0400 Subject: 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. --- src/tools/sss_sync_ops.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/tools/sss_sync_ops.c') diff --git a/src/tools/sss_sync_ops.c b/src/tools/sss_sync_ops.c index 59e5c604d..45fd5731d 100644 --- a/src/tools/sss_sync_ops.c +++ b/src/tools/sss_sync_ops.c @@ -43,13 +43,6 @@ } \ } while(0) -#define SYNC_LOOP(ops, retval) do { \ - while (!ops->done) { \ - tevent_loop_once(ev); \ - } \ - retval = ops->error; \ -} while(0) - struct sync_op_res { struct ops_ctx *data; int error; @@ -112,7 +105,6 @@ done: * Modify a user */ struct user_mod_state { - struct tevent_context *ev; struct sysdb_ctx *sysdb; struct sysdb_attrs *attrs; @@ -591,7 +583,6 @@ int groupdel(TALLOC_CTX *mem_ctx, * getpwnam, getgrnam and friends */ int sysdb_getpwnam_sync(TALLOC_CTX *mem_ctx, - struct tevent_context *ev, struct sysdb_ctx *sysdb, const char *name, struct sss_domain_info *domain, @@ -666,7 +657,6 @@ int sysdb_getpwnam_sync(TALLOC_CTX *mem_ctx, } int sysdb_getgrnam_sync(TALLOC_CTX *mem_ctx, - struct tevent_context *ev, struct sysdb_ctx *sysdb, const char *name, struct sss_domain_info *domain, -- cgit