Check coding style 24/189224/1
authormk5004.lee <mk5004.lee@samsung.com>
Fri, 14 Sep 2018 09:53:12 +0000 (18:53 +0900)
committermk5004.lee <mk5004.lee@samsung.com>
Fri, 14 Sep 2018 09:53:50 +0000 (18:53 +0900)
Change-Id: If61108035c10d327708976e28247476a9ede018e
Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
lib/src/shortcut_db.c
lib/src/shortcut_internal.c
lib/src/shortcut_manager.c

index 7a09f12..d41b302 100755 (executable)
@@ -50,12 +50,12 @@ static bool is_db_corrupted = false;
 static int __check_integrity_cb(void *pid, int argc, char **argv, char **notUsed)
 {
        if (strcmp(argv[0], "ok") != 0) {
-               SHORTCUT_ERR("db integrity result : %s" , argv[0]);
+               SHORTCUT_ERR("db integrity result : %s", argv[0]);
                is_db_corrupted = true;
                return -1;
        }
 
-       SHORTCUT_INFO("db integrity result : %s" , argv[0]);
+       SHORTCUT_INFO("db integrity result : %s", argv[0]);
        return 0;
 }
 /* LCOV_EXCL_STOP */
@@ -73,7 +73,7 @@ static int __recover_corrupted_db(sqlite3 *db)
        unlink(DB_PATH);
 
        sql_ret = sqlite3_open_v2(DB_PATH, &db,
-                               SQLITE_OPEN_CREATE |SQLITE_OPEN_READWRITE,
+                               SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE,
                                NULL);
        if (sql_ret != SQLITE_OK) {
                SHORTCUT_ERR("Failed to open db[%d]", sql_ret);
@@ -97,7 +97,7 @@ out:
 /* LCOV_EXCL_STOP */
 
 /* LCOV_EXCL_START */
-EAPI int shortcut_db_init()
+EAPI int shortcut_db_init(void)
 {
        int ret = SHORTCUT_ERROR_NONE;
        int sql_ret;
index 1ea84e4..5782a09 100755 (executable)
@@ -189,7 +189,7 @@ int _dbus_init(void)
        return SHORTCUT_ERROR_NONE;
 }
 
-int _dbus_signal_init()
+int _dbus_signal_init(void)
 {
        int ret = SHORTCUT_ERROR_NONE;
        int id;
@@ -271,7 +271,7 @@ char *_shortcut_get_pkgname_by_pid(void)
 int _send_sync_shortcut(GVariant *body, GDBusMessage **reply, char *cmd)
 {
        GError *err = NULL;
-       GDBusMessage *msg ;
+       GDBusMessage *msg;
        int ret = SHORTCUT_ERROR_NONE;
 
        msg = g_dbus_message_new_method_call(
@@ -332,7 +332,7 @@ int _send_sync_shortcut(GVariant *body, GDBusMessage **reply, char *cmd)
        return SHORTCUT_ERROR_NONE;
 }
 
-int _send_service_register()
+int _send_service_register(void)
 {
        GDBusMessage *reply = NULL;
        int result;
@@ -403,6 +403,7 @@ static void _send_message_with_reply_sync_cb(GDBusConnection *connection,
 int _send_async_shortcut(GVariant *body, struct result_cb_item *cb_item, char *cmd)
 {
        GDBusMessage *msg;
+
        msg = g_dbus_message_new_method_call(
                        PROVIDER_BUS_NAME,
                        PROVIDER_OBJECT_PATH,
@@ -416,7 +417,7 @@ int _send_async_shortcut(GVariant *body, struct result_cb_item *cb_item, char *c
        }
 
        if (g_variant_is_floating(body))
-                g_variant_ref(body);
+               g_variant_ref(body);
 
        if (body != NULL)
                g_dbus_message_set_body(msg, body);
@@ -523,7 +524,7 @@ void _unset_remove_cb(void)
        _remove_callback_info.data = NULL;
 }
 
-int _dbus_set_watch_name()
+int _dbus_set_watch_name(void)
 {
        if (provider_monitor_id == 0) {
                provider_monitor_id = g_bus_watch_name_on_connection(
index 12ff3ad..dae74af 100755 (executable)
@@ -33,7 +33,7 @@
 #include "shortcut_manager.h"
 #include "shortcut_internal.h"
 
-static int __shortcut_init_ipc_process()
+static int __shortcut_init_ipc_process(void)
 {
        int ret;