From d0a94d34e6cbfb0cc164460b173c7fcfb2d28344 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 10 Dec 2008 17:16:03 -0500 Subject: Fix indentation to follow rules --- server/sbus/sssd_dbus_connection.c | 50 ++++++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 21 deletions(-) (limited to 'server') diff --git a/server/sbus/sssd_dbus_connection.c b/server/sbus/sssd_dbus_connection.c index e587bd9b6..b1c765562 100644 --- a/server/sbus/sssd_dbus_connection.c +++ b/server/sbus/sssd_dbus_connection.c @@ -432,35 +432,43 @@ void sbus_disconnect (struct sbus_conn_ctx *dct_ctx) } DEBUG(5,("Disconnecting %lX\n", dct_ctx->conn)); + + /******************************* + * Referencing dct_ctx->conn */ dbus_connection_ref(dct_ctx->conn); - dct_ctx->disconnect = 1; - /* Invoke the custom destructor, if it exists */ - if(dct_ctx->destructor) { - dct_ctx->destructor(dct_ctx); - } + dct_ctx->disconnect = 1; + + /* Invoke the custom destructor, if it exists */ + if(dct_ctx->destructor) { + dct_ctx->destructor(dct_ctx); + } + + /* Unregister object paths */ + sbus_unreg_object_paths(dct_ctx); - /* Unregister object paths */ - sbus_unreg_object_paths(dct_ctx); + /* Disable watch functions */ + dbus_connection_set_watch_functions(dct_ctx->conn, + NULL, NULL, NULL, + NULL, NULL); + /* Disable timeout functions */ + dbus_connection_set_timeout_functions(dct_ctx->conn, + NULL, NULL, NULL, + NULL, NULL); - /* Disable watch functions */ - dbus_connection_set_watch_functions(dct_ctx->conn, - NULL, NULL, NULL, - NULL, NULL); - /* Disable timeout functions */ - dbus_connection_set_timeout_functions(dct_ctx->conn, - NULL, NULL, NULL, - NULL, NULL); + /* Disable dispatch status function */ + dbus_connection_set_dispatch_status_function(dct_ctx->conn, NULL, NULL, NULL); - /* Disable dispatch status function */ - dbus_connection_set_dispatch_status_function(dct_ctx->conn, NULL, NULL, NULL); + /* Disable wakeup main function */ + dbus_connection_set_wakeup_main_function(dct_ctx->conn, NULL, NULL, NULL); - /* Disable wakeup main function */ - dbus_connection_set_wakeup_main_function(dct_ctx->conn, NULL, NULL, NULL); + /* Finalize the connection */ + sbus_default_connection_destructor(dct_ctx); - /* Finalize the connection */ - sbus_default_connection_destructor(dct_ctx); dbus_connection_unref(dct_ctx->conn); + /* Unreferenced dct_ctx->conn * + ******************************/ + DEBUG(5,("Disconnected %lX\n", dct_ctx->conn)); } -- cgit