From: DoHyun Pyun Date: Mon, 30 May 2016 09:52:52 +0000 (+0900) Subject: Fix the coding style errors (bt-core) X-Git-Tag: accepted/tizen/common/20160603.150552~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=491c554300da948c6d9d14c389d1ce627fabcd1d;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git Fix the coding style errors (bt-core) Change-Id: I519953e66b0980657a7ad5f60f6a9aec5ed5a6d2 Signed-off-by: DoHyun Pyun --- diff --git a/bt-core/bt-core-adapter.c b/bt-core/bt-core-adapter.c index 9fea808..490175c 100755 --- a/bt-core/bt-core-adapter.c +++ b/bt-core/bt-core-adapter.c @@ -230,7 +230,7 @@ int _bt_disable_adapter(void) if (__execute_command("/usr/etc/bluetooth/bt-stack-down.sh", NULL) < 0) { #endif BT_ERR("running script failed"); - __bt_core_set_status( BT_ACTIVATED); + __bt_core_set_status(BT_ACTIVATED); return -1; } @@ -352,7 +352,7 @@ static gboolean __bt_core_check_the_adapter_path(GDBusConnection *conn) GVariant *result = NULL; char *adapter_path = NULL; - if(conn == NULL) + if (conn == NULL) return FALSE; manager_proxy = g_dbus_proxy_new_sync(conn, @@ -432,9 +432,9 @@ void _bt_core_update_status(void) BT_INFO("bt_status = %d, bt_le_status = %d", bt_status, bt_le_status); - if(bt_status & VCONFKEY_BT_STATUS_ON) + if (bt_status & VCONFKEY_BT_STATUS_ON) __bt_core_set_status(BT_ACTIVATED); - if(bt_le_status & VCONFKEY_BT_LE_STATUS_ON) + if (bt_le_status & VCONFKEY_BT_LE_STATUS_ON) __bt_core_set_le_status(BT_ACTIVATED); } } @@ -791,8 +791,7 @@ void _bt_core_adapter_removed_cb(void) EVT_VAL_BT_LE_OFF) != ES_R_OK) BT_ERR("Fail to set value"); - if (is_recovery_mode == TRUE) - { + if (is_recovery_mode == TRUE) { if (timer_id < 0) timer_id = g_timeout_add(2000, (GSourceFunc)__bt_core_recovery_cb, NULL); return; @@ -814,7 +813,7 @@ void _bt_core_adapter_removed_cb(void) } _bt_set_flightmode_request(FALSE); - if (flight_mode_value == 1 || power_saving_mode == 1){ + if (flight_mode_value == 1 || power_saving_mode == 1) { BT_DBG("Bt Core not terminated"); return; } diff --git a/bt-core/bt-core-noti-handler.c b/bt-core/bt-core-noti-handler.c index fe45131..fa94f49 100755 --- a/bt-core/bt-core-noti-handler.c +++ b/bt-core/bt-core-noti-handler.c @@ -40,9 +40,9 @@ static gboolean __bt_off_cause_conflict_check(void) int ps_mode_value = 0; gboolean ret = FALSE; - retv_if (vconf_get_int(BT_OFF_DUE_TO_FLIGHT_MODE, + retv_if(vconf_get_int(BT_OFF_DUE_TO_FLIGHT_MODE, &flight_mode_value) != 0, FALSE); - retv_if (vconf_get_int(BT_OFF_DUE_TO_POWER_SAVING_MODE, + retv_if(vconf_get_int(BT_OFF_DUE_TO_POWER_SAVING_MODE, &ps_mode_value) != 0, FALSE); if (flight_mode_value == 1 || ps_mode_value > 0) { diff --git a/bt-core/include/bt-core-common.h b/bt-core/include/bt-core-common.h index 8501d1a..b1bf5e6 100755 --- a/bt-core/include/bt-core-common.h +++ b/bt-core/include/bt-core-common.h @@ -66,7 +66,7 @@ extern "C" { } \ } while (0) -#define BT_FREE_PARAMS(IP1,IP2,IP3,IP4,OP) \ +#define BT_FREE_PARAMS(IP1, IP2, IP3, IP4, OP) \ do { \ if (IP1) \ g_array_free(IP1, TRUE); \ @@ -80,7 +80,7 @@ extern "C" { g_array_free(OP, TRUE); \ } while (0) -#define BT_ALLOC_PARAMS(IP1,IP2,IP3,IP4,OP ) \ +#define BT_ALLOC_PARAMS(IP1, IP2, IP3, IP4, OP) \ do { \ IP1 = g_array_new(TRUE, TRUE, sizeof(gchar)); \ IP2 = g_array_new(TRUE, TRUE, sizeof(gchar)); \