From f24c2dd7cc8414ea0a5c8c4ae7766ca71554480f Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 29 Sep 2009 10:14:36 -0400 Subject: Fix tools sync operations and mem hierarchy Tools were using nested loops that are illegal. (and enforced in latest tevent with a nice abort()) Fix them by creating appropriate synchronous transaction calls. Also fix tools_ctx mem hierarchy setup. --- server/tools/tools_util.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'server/tools/tools_util.h') diff --git a/server/tools/tools_util.h b/server/tools/tools_util.h index f17e68dac..c062decec 100644 --- a/server/tools/tools_util.h +++ b/server/tools/tools_util.h @@ -26,7 +26,6 @@ #include #include "util/sssd-i18n.h" -#include "tools/sss_sync_ops.h" #define CHECK_ROOT(val, prg_name) do { \ val = getuid(); \ @@ -49,7 +48,7 @@ struct tools_ctx { struct ops_ctx *octx; struct sysdb_handle *handle; - int transaction_done; + bool transaction_done; int error; }; @@ -73,6 +72,4 @@ int parse_groups(TALLOC_CTX *mem_ctx, int parse_group_name_domain(struct tools_ctx *tctx, char **groups); -void tools_transaction_done(struct tevent_req *req); - #endif /* __TOOLS_UTIL_H__ */ -- cgit