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/sss_sync_ops.c | |
parent | 9fc354f7deb3f0de84f0403ec4f212ca18b5e8e8 (diff) | |
download | sssd-d86fc9163127f7c5bd0c3af950fcddff7911867f.tar.gz sssd-d86fc9163127f7c5bd0c3af950fcddff7911867f.tar.xz 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/sss_sync_ops.c')
-rw-r--r-- | src/tools/sss_sync_ops.c | 10 |
1 files changed, 0 insertions, 10 deletions
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, |