summaryrefslogtreecommitdiffstats
path: root/server/tools/tools_util.h
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-09-29 10:14:36 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-10-01 08:42:36 -0400
commitf24c2dd7cc8414ea0a5c8c4ae7766ca71554480f (patch)
treecceff211fe8fc0c78c59b959af5367c0c4ce49f3 /server/tools/tools_util.h
parentbc58f5892d3a8f6b28e2148c5a0cca34b63ef354 (diff)
downloadsssd-f24c2dd7cc8414ea0a5c8c4ae7766ca71554480f.tar.gz
sssd-f24c2dd7cc8414ea0a5c8c4ae7766ca71554480f.tar.xz
sssd-f24c2dd7cc8414ea0a5c8c4ae7766ca71554480f.zip
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.
Diffstat (limited to 'server/tools/tools_util.h')
-rw-r--r--server/tools/tools_util.h5
1 files changed, 1 insertions, 4 deletions
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 <popt.h>
#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__ */