code cleanup
authorTrevor Saunders <trev.saunders@gmail.com>
Thu, 5 Aug 2010 08:39:24 +0000 (04:39 -0400)
committerMike Gorse <mgorse@novell.com>
Tue, 31 Aug 2010 01:11:38 +0000 (21:11 -0400)
- use mktemp instead of mktmp, mktmp doesn't seem to be defined very
  well.
- make function declaration conform to style.
- make dbus method name start with a cap per the dbus spec.

atk-adaptor/adaptors/application-adaptor.c
atk-adaptor/bridge.c

index bc8c431..1877b8f 100644 (file)
@@ -107,7 +107,7 @@ static DRouteMethod methods[] = {
   {impl_pause, "pause"},
   {impl_resume, "resume"},
   {impl_GetLocale, "GetLocale"},
-  {impl_get_app_bus, "getApplicationBusAddress"},
+  {impl_get_app_bus, "GetApplicationBusAddress"},
   {NULL, NULL}
 };
 
index 356b5fc..80d3f8e 100644 (file)
@@ -333,7 +333,7 @@ register_application (SpiBridge * app)
 /* could this be better, we accept some amount of race in getting the temp name*/
 /* make sure the directory exists */
 mkdir("/tmp/at-spi2/", 0);
-app->app_bus_addr = mktmp("/tmp/at-spi2/app-socket-xxxxxx");
+app->app_bus_addr = mktemp(file_template);
     }
   else
     {
@@ -516,7 +516,8 @@ install_plug_hooks ()
   socket_class->embed = socket_embed_hook;
 }
 
-static void new_connection_cb(DBusServer *server, DBusConnection *con, void *data)
+static void
+new_connection_cb(DBusServer *server, DBusConnection *con, void *data)
 {
 dbus_connection_ref(con);
 dbus_connection_setup_with_g_main(con, NULL);