Adjust coding rule 90/149290/1
authorSeungha Son <seungha.son@samsung.com>
Tue, 12 Sep 2017 05:03:37 +0000 (14:03 +0900)
committerSeungha Son <seungha.son@samsung.com>
Tue, 12 Sep 2017 05:04:38 +0000 (14:04 +0900)
 - 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 <seungha.son@samsung.com>
Change-Id: I87e190ba140bfc8186ea3c816f390dfc9e31877e

src/rua_dbus.c
src/rua_dbus.h

index 1957e48..0becc29 100644 (file)
@@ -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 GHashTablecallback_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,
index 76789a9..43f5a17 100644 (file)
@@ -17,8 +17,7 @@
 #ifndef __RUA_DBUS_H__
 #define __RUA_DBUS_H__
 
-typedef enum
-{
+typedef enum {
        ADD,
        DELETE,
        UPDATE