summaryrefslogtreecommitdiff
path: root/legacy-app-handler/main.c
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-06-18 10:18:54 +0100
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-06-18 10:32:09 +0100
commit26f135420ac2b7c86aed81292371e1d19a8b057e (patch)
tree7c19478b232f6c0600b71786bc2cb6f84b9ed66b /legacy-app-handler/main.c
parent945bfed36b23ad1eb8e3c6fe2f3248588dd6fafa (diff)
downloadnode-startup-controller-26f135420ac2b7c86aed81292371e1d19a8b057e.tar.gz
Apply a small amount of coding style fixes
Diffstat (limited to 'legacy-app-handler/main.c')
-rw-r--r--legacy-app-handler/main.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/legacy-app-handler/main.c b/legacy-app-handler/main.c
index 9338f37..df81e05 100644
--- a/legacy-app-handler/main.c
+++ b/legacy-app-handler/main.c
@@ -32,33 +32,33 @@ main (int argc,
GDBusConnection *connection;
GError *error = NULL;
gint exit_status = EXIT_SUCCESS;
-
+
/* initialize the GType type system */
g_type_init ();
-
+
/* attempt to connect to D-Bus */
connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &error);
if (connection == NULL)
{
g_warning ("Failed to connect to D-Bus: %s", error->message);
-
+
/* clean up */
g_error_free (error);
-
+
return EXIT_FAILURE;
}
- /* Instantiate the LegacyAppHandler service implementation */
+ /* instantiate the LegacyAppHandler service implementation */
service = la_handler_service_new (connection);
if (!la_handler_service_start (service, &error))
{
g_warning ("Failed to start the LegacyAppHandler service: %s", error->message);
-
+
/* clean up */
g_error_free (error);
g_object_unref (service);
g_object_unref (connection);
-
+
return EXIT_FAILURE;
}
@@ -66,10 +66,10 @@ main (int argc,
application = la_handler_application_new (service);
exit_status = g_application_run (G_APPLICATION (application), 0, NULL);
g_object_unref (application);
-
+
/* release allocated objects */
g_object_unref (service);
g_object_unref (connection);
-
+
return exit_status;
}