From 6b7c922f315c7817a6c64533f8b8eed7946eaa3d Mon Sep 17 00:00:00 2001 From: Huang Peng Date: Sun, 15 Feb 2009 16:11:30 +0800 Subject: Refine coding style. --- bus/ibusimpl.c | 10 +++++----- bus/main.c | 4 ++-- src/ibusbus.c | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/bus/ibusimpl.c b/bus/ibusimpl.c index 2e39dc4..7f51130 100644 --- a/bus/ibusimpl.c +++ b/bus/ibusimpl.c @@ -393,15 +393,15 @@ bus_ibus_impl_destroy (BusIBusImpl *ibus) glong timeout; gint status; gboolean flag; - + bus_registry_stop_all_components (ibus->registry); pid = 0; timeout = 0; flag = FALSE; while (1) { - while ((pid = waitpid (0, &status, WNOHANG)) > 0); - + while ((pid = waitpid (0, &status, WNOHANG)) > 0); + if (pid == -1) { /* all children finished */ break; } @@ -879,7 +879,7 @@ _ibus_exit (BusIBusImpl *ibus, IBusMessage *reply; IBusError *error; gboolean restart; - + if (!ibus_message_get_args (message, &error, G_TYPE_BOOLEAN, &restart, @@ -914,7 +914,7 @@ _ibus_exit (BusIBusImpl *ibus, g_warning ("execv %s failed!", g_argv[0]); exit (-1); } - + /* should not reach here */ g_assert_not_reached (); diff --git a/bus/main.c b/bus/main.c index 71c8dbe..8757af5 100644 --- a/bus/main.c +++ b/bus/main.c @@ -115,7 +115,7 @@ main (gint argc, gchar **argv) /* create a new process group */ setpgrp (); - + g_type_init (); /* check if ibus-daemon is running in this session */ @@ -133,7 +133,7 @@ main (gint argc, gchar **argv) } g_object_unref (bus); bus = NULL; - + /* create ibus server */ server = bus_server_get_default (); bus_server_listen (server); diff --git a/src/ibusbus.c b/src/ibusbus.c index a567359..0ebdf66 100644 --- a/src/ibusbus.c +++ b/src/ibusbus.c @@ -641,7 +641,7 @@ ibus_bus_exit (IBusBus *bus, IBusBusPrivate *priv; priv = IBUS_BUS_GET_PRIVATE (bus); - + gboolean result; result = ibus_bus_call (bus, IBUS_SERVICE_IBUS, @@ -652,7 +652,7 @@ ibus_bus_exit (IBusBus *bus, G_TYPE_INVALID, G_TYPE_INVALID); ibus_connection_flush (priv->connection); - + return result; } -- cgit