From 519a8e9cba9df29a396d6509fb71a10ef1aacec0 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Mon, 15 Dec 2008 10:35:49 -0500 Subject: Adding a parameter to the sbus_service_sbus_init function to allow passing in an sbus_conn_destructor_fn to the sbus_new_connection() function. Fixing minor warning about the usage of talloc_reference. --- server/util/service_helpers.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'server/util/service_helpers.c') diff --git a/server/util/service_helpers.c b/server/util/service_helpers.c index 1630946f..0c5661b2 100644 --- a/server/util/service_helpers.c +++ b/server/util/service_helpers.c @@ -33,7 +33,8 @@ struct service_sbus_ctx *sssd_service_sbus_init(TALLOC_CTX *mem_ctx, struct event_context *ev, struct confdb_ctx *cdb, - struct sbus_method *methods) + struct sbus_method *methods, + sbus_conn_destructor_fn destructor) { struct service_sbus_ctx *ss_ctx; struct sbus_method_ctx *sm_ctx; @@ -61,7 +62,7 @@ struct service_sbus_ctx *sssd_service_sbus_init(TALLOC_CTX *mem_ctx, ret = sbus_new_connection(ss_ctx, ss_ctx->ev, sbus_address, &ss_ctx->scon_ctx, - NULL); + destructor); if (ret != EOK) goto error; conn = sbus_get_connection(ss_ctx->scon_ctx); -- cgit