summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHuang Peng <shawn.p.huang@gmail.com>2009-02-15 16:11:30 +0800
committerHuang Peng <shawn.p.huang@gmail.com>2009-02-15 16:11:30 +0800
commit6b7c922f315c7817a6c64533f8b8eed7946eaa3d (patch)
tree53e920f04c25574c9e42885384085006553e79ad
parentc4d1ac55757c91abb56682a4c349abe2711d0cea (diff)
downloadibus-6b7c922f315c7817a6c64533f8b8eed7946eaa3d.tar.gz
ibus-6b7c922f315c7817a6c64533f8b8eed7946eaa3d.tar.xz
ibus-6b7c922f315c7817a6c64533f8b8eed7946eaa3d.zip
Refine coding style.
-rw-r--r--bus/ibusimpl.c10
-rw-r--r--bus/main.c4
-rw-r--r--src/ibusbus.c4
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;
}