summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2008-12-10 17:16:03 -0500
committerSimo Sorce <idra@samba.org>2008-12-10 17:16:03 -0500
commitd0a94d34e6cbfb0cc164460b173c7fcfb2d28344 (patch)
tree890b99520fc2a12b4dc57bce6193145ac0a6b49d /server
parent1e4ff482d8d219ffd7a360a7783f29bff9cf9e2f (diff)
downloadsssd-d0a94d34e6cbfb0cc164460b173c7fcfb2d28344.tar.gz
sssd-d0a94d34e6cbfb0cc164460b173c7fcfb2d28344.tar.xz
sssd-d0a94d34e6cbfb0cc164460b173c7fcfb2d28344.zip
Fix indentation to follow rules
Diffstat (limited to 'server')
-rw-r--r--server/sbus/sssd_dbus_connection.c50
1 files changed, 29 insertions, 21 deletions
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));
}