summaryrefslogtreecommitdiff
path: root/server/dbus/sssd_dbus_connection.c
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2008-10-28 09:18:43 -0400
committerSimo Sorce <idra@samba.org>2008-11-03 10:12:29 -0500
commitf0a8bcff01cafc5fa846ef88625df3ee656961f3 (patch)
tree06fb2d5b01b7039c2ee05ec3f8060815ab409245 /server/dbus/sssd_dbus_connection.c
parent0d3fad824641eabd2e856f7b4aa7828367bba5fa (diff)
downloadsssd-f0a8bcff01cafc5fa846ef88625df3ee656961f3.tar.gz
sssd-f0a8bcff01cafc5fa846ef88625df3ee656961f3.tar.bz2
sssd-f0a8bcff01cafc5fa846ef88625df3ee656961f3.zip
Cleaning up improper whitespace
Diffstat (limited to 'server/dbus/sssd_dbus_connection.c')
-rw-r--r--server/dbus/sssd_dbus_connection.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/dbus/sssd_dbus_connection.c b/server/dbus/sssd_dbus_connection.c
index 991a28fe..0033ab87 100644
--- a/server/dbus/sssd_dbus_connection.c
+++ b/server/dbus/sssd_dbus_connection.c
@@ -55,7 +55,7 @@ static void do_dispatch(struct event_context *ev,
DEBUG(0,("Critical Error, connection_type is neither shared nor private!\n"))
}
dbus_connection_set_data(conn,connection_type_slot, NULL, NULL);
-
+
return;
}
@@ -67,7 +67,7 @@ static void do_dispatch(struct event_context *ev,
DEBUG(2,("Dispatching.\n"));
dbus_connection_dispatch(conn);
}
-
+
/* If other dispatches are waiting, queue up the do_dispatch function
* for the next loop.
*/
@@ -76,7 +76,7 @@ static void do_dispatch(struct event_context *ev,
new_event = event_add_timed(ev, ev, tv, do_dispatch, conn);
if (new_event == NULL) {
DEBUG(0,("Could not add dispatch event!\n"));
-
+
/* TODO: Calling exit here is bad */
exit(1);
}
@@ -140,7 +140,7 @@ static dbus_bool_t add_connection_watch(DBusWatch *watch, void *data)
if (event_flags == 0)
return FALSE;
-
+
DEBUG(2,("%lX: %d, %d=%s\n", watch, conn_w_ctx->fd, event_flags, event_flags==EVENT_FD_READ?"READ":"WRITE"));
/* Add the file descriptor to the event loop */
@@ -317,7 +317,7 @@ int sssd_new_dbus_connection(struct sssd_dbus_ctx *ctx, const char *address,
int ret;
dbus_error_init(&dbus_error);
-
+
/* Open a shared D-BUS connection to the address */
dbus_conn = dbus_connection_open(address, &dbus_error);
if (!dbus_conn) {
@@ -325,12 +325,12 @@ int sssd_new_dbus_connection(struct sssd_dbus_ctx *ctx, const char *address,
dbus_error.name, dbus_error.message));
return EIO;
}
-
+
/* Allocate or increase the reference count of connection_type_slot */
if (!dbus_connection_allocate_data_slot(&connection_type_slot)) {
return ENOMEM;
}
-
+
connection_type = DBUS_CONNECTION_TYPE_SHARED;
dbus_connection_set_data(dbus_conn, connection_type_slot, &connection_type, NULL);