diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-08-05 05:44:20 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-08-10 09:42:19 -0400 |
commit | f1e4471551aa74015579bff0b64735cc9b085b74 (patch) | |
tree | 45071c03d3f4810e8214a9097c36b21641d9cfc3 /server/responder/common | |
parent | 0c7050d8569ce7ee61b13d02b4733249a11e171f (diff) | |
download | sssd-f1e4471551aa74015579bff0b64735cc9b085b74.tar.gz sssd-f1e4471551aa74015579bff0b64735cc9b085b74.tar.bz2 sssd-f1e4471551aa74015579bff0b64735cc9b085b74.zip |
merge server and connection structures
This reduce code duplication as it allows to use one set of watch and timeout
functions, and at the same time also allow not to use a secondary structure just
to unify these functions.
Diffstat (limited to 'server/responder/common')
-rw-r--r-- | server/responder/common/responder_common.c | 4 | ||||
-rw-r--r-- | server/responder/common/responder_dp.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/server/responder/common/responder_common.c b/server/responder/common/responder_common.c index 1fd66907..c8e5d818 100644 --- a/server/responder/common/responder_common.c +++ b/server/responder/common/responder_common.c @@ -310,8 +310,8 @@ static int sss_sbus_init(struct resp_ctx *rctx) return ENOMEM; } - ret = sbus_client_init(rctx, rctx->ev, rctx->sm_ctx, - sbus_address, &rctx->conn, + ret = sbus_client_init(rctx, rctx->ev, sbus_address, + rctx->sm_ctx, &rctx->conn, NULL, NULL); if (ret != EOK) { DEBUG(0, ("Failed to connect to monitor services.\n")); diff --git a/server/responder/common/responder_dp.c b/server/responder/common/responder_dp.c index bdd9a9ef..547cb272 100644 --- a/server/responder/common/responder_dp.c +++ b/server/responder/common/responder_dp.c @@ -61,8 +61,8 @@ static void sss_dp_conn_reconnect(struct sss_dp_pvt_ctx *pvt) return; } - ret = sbus_client_init(rctx, rctx->ev, rctx->sm_ctx, - sbus_address, &rctx->conn, + ret = sbus_client_init(rctx, rctx->ev, sbus_address, + rctx->sm_ctx, &rctx->conn, sss_dp_conn_destructor, pvt); if (ret != EOK) { DEBUG(4, ("Failed to reconnect [%d(%s)]!\n", ret, strerror(ret))); |