From 732c535670d54465a99aa5b864d0eddd99c5c2d5 Mon Sep 17 00:00:00 2001 From: Seungha Son Date: Tue, 12 Sep 2017 14:03:37 +0900 Subject: [PATCH] Adjust coding rule - open brace '{' following struct go on the same line - "foo* bar" should be "foo *bar" - braces {} are not necessary for single statement blocks Signed-off-by: Seungha Son Change-Id: I87e190ba140bfc8186ea3c816f390dfc9e31877e --- src/rua_dbus.c | 8 +++----- src/rua_dbus.h | 3 +-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/rua_dbus.c b/src/rua_dbus.c index 1957e48..0becc29 100644 --- a/src/rua_dbus.c +++ b/src/rua_dbus.c @@ -29,8 +29,7 @@ #define RUA_PATH "/org/tizen/rua" #define RUA_SIGNAL_DATA_UPDATE "dataupdate" -struct cb_data -{ +struct cb_data { int callback_id; rua_history_update_cb callback; void *user_data; @@ -40,7 +39,7 @@ static GDBusConnection *conn; static guint s_id; static gint atomic_callback_id; -static GHashTable* callback_hash_table; +static GHashTable *callback_hash_table; static void __foreach_callback(gpointer key, gpointer value, gpointer user_data); @@ -179,9 +178,8 @@ static void __foreach_callback(gpointer key, gpointer value, if (r == -1) return; - if (cd->callback) { + if (cd->callback) cd->callback(table, nrows, ncols, cd->user_data); - } } static void __signal_handler(GDBusConnection *connection, diff --git a/src/rua_dbus.h b/src/rua_dbus.h index 76789a9..43f5a17 100644 --- a/src/rua_dbus.h +++ b/src/rua_dbus.h @@ -17,8 +17,7 @@ #ifndef __RUA_DBUS_H__ #define __RUA_DBUS_H__ -typedef enum -{ +typedef enum { ADD, DELETE, UPDATE -- 2.7.4