From: DoHyun Pyun Date: Mon, 30 May 2016 06:19:46 +0000 (+0900) Subject: Fix the coding style errors X-Git-Tag: submit/tizen/20160531.005626~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F90%2F71990%2F1;p=platform%2Fcore%2Fapi%2Fbluetooth.git Fix the coding style errors Change-Id: I56a59b41b6f05bcb612b11a8564b8dce6ebe78b1 Signed-off-by: DoHyun Pyun --- diff --git a/include/mobile/bluetooth_internal.h b/include/mobile/bluetooth_internal.h index cdca4ea..ed6ce93 100644 --- a/include/mobile/bluetooth_internal.h +++ b/include/mobile/bluetooth_internal.h @@ -2769,10 +2769,10 @@ int bt_hid_device_reply_to_report(const char *remote_address, * @privilege %http://tizen.org/privilege/bluetooth.admin * * @param[in] value - BT Allow value. - * BT_DPM_ERROR = -1, < bluetooth allowance error - * BT_DPM_BT_ALLOWED, < bluetooth allowance allowed - * BT_DPM_HANDSFREE_ONLY, < bluetooth allowance handsfree only - * BT_DPM_BT_RESTRICTED, < bluetooth allowance restricted + * BT_DPM_ERROR = -1, < bluetooth allowance error + * BT_DPM_BT_ALLOWED, < bluetooth allowance allowed + * BT_DPM_HANDSFREE_ONLY, < bluetooth allowance handsfree only + * BT_DPM_BT_RESTRICTED, < bluetooth allowance restricted * @retval #BT_ERROR_NONE Successful * @retval #BT_ERROR_INVALID_PARAMETER invalid paramter * @retval #BT_ERROR_NOT_SUPPORTED Not suported diff --git a/include/mobile/bluetooth_type_internal.h b/include/mobile/bluetooth_type_internal.h index 84582ee..3c59412 100644 --- a/include/mobile/bluetooth_type_internal.h +++ b/include/mobile/bluetooth_type_internal.h @@ -194,8 +194,8 @@ typedef enum { BT_DPM_ENABLE = 1, /**< DPM Policy status enabled. */ BT_DPM_DISABLE = 0, /**< DPM Policy status disabled. */ - BT_DPM_FALSE = 0, /**< DPM Policy status false. */ - BT_DPM_TRUE = 1, /**< DPM Policy status true. */ + BT_DPM_FALSE = 0, /**< DPM Policy status false. */ + BT_DPM_TRUE = 1, /**< DPM Policy status true. */ } bt_dpm_status_e; /** diff --git a/include/tv/bluetooth_internal.h b/include/tv/bluetooth_internal.h index 05ec4f3..cedf9dc 100644 --- a/include/tv/bluetooth_internal.h +++ b/include/tv/bluetooth_internal.h @@ -2770,10 +2770,10 @@ int bt_hid_device_reply_to_report(const char *remote_address, * @privilege %http://tizen.org/privilege/bluetooth.admin * * @param[in] value - BT Allow value. - * BT_DPM_ERROR = -1, < bluetooth allowance error - * BT_DPM_BT_ALLOWED, < bluetooth allowance allowed - * BT_DPM_HANDSFREE_ONLY, < bluetooth allowance handsfree only - * BT_DPM_BT_RESTRICTED, < bluetooth allowance restricted + * BT_DPM_ERROR = -1, < bluetooth allowance error + * BT_DPM_BT_ALLOWED, < bluetooth allowance allowed + * BT_DPM_HANDSFREE_ONLY, < bluetooth allowance handsfree only + * BT_DPM_BT_RESTRICTED, < bluetooth allowance restricted * @retval #BT_ERROR_NONE Successful * @retval #BT_ERROR_INVALID_PARAMETER invalid paramter * @retval #BT_ERROR_NOT_SUPPORTED Not suported diff --git a/include/tv/bluetooth_type_internal.h b/include/tv/bluetooth_type_internal.h index 84582ee..85159c4 100644 --- a/include/tv/bluetooth_type_internal.h +++ b/include/tv/bluetooth_type_internal.h @@ -195,7 +195,7 @@ typedef enum { BT_DPM_DISABLE = 0, /**< DPM Policy status disabled. */ BT_DPM_FALSE = 0, /**< DPM Policy status false. */ - BT_DPM_TRUE = 1, /**< DPM Policy status true. */ + BT_DPM_TRUE = 1, /**< DPM Policy status true. */ } bt_dpm_status_e; /** diff --git a/include/wearable/bluetooth_internal.h b/include/wearable/bluetooth_internal.h index 626b6de..8815bf3 100644 --- a/include/wearable/bluetooth_internal.h +++ b/include/wearable/bluetooth_internal.h @@ -3116,10 +3116,10 @@ int bt_hid_device_reply_to_report(const char *remote_address, * @privilege %http://tizen.org/privilege/bluetooth.admin * * @param[in] value - BT Allow value. - * BT_DPM_ERROR = -1, < bluetooth allowance error - * BT_DPM_BT_ALLOWED, < bluetooth allowance allowed - * BT_DPM_HANDSFREE_ONLY, < bluetooth allowance handsfree only - * BT_DPM_BT_RESTRICTED, < bluetooth allowance restricted + * BT_DPM_ERROR = -1, < bluetooth allowance error + * BT_DPM_BT_ALLOWED, < bluetooth allowance allowed + * BT_DPM_HANDSFREE_ONLY, < bluetooth allowance handsfree only + * BT_DPM_BT_RESTRICTED, < bluetooth allowance restricted * @retval #BT_ERROR_NONE Successful * @retval #BT_ERROR_INVALID_PARAMETER invalid paramter * @retval #BT_ERROR_NOT_SUPPORTED Not suported diff --git a/include/wearable/bluetooth_type_internal.h b/include/wearable/bluetooth_type_internal.h index 9acb808..eef15ed 100644 --- a/include/wearable/bluetooth_type_internal.h +++ b/include/wearable/bluetooth_type_internal.h @@ -336,7 +336,7 @@ typedef enum { BT_DPM_DISABLE = 0, /**< DPM Policy status disabled. */ BT_DPM_FALSE = 0, /**< DPM Policy status false. */ - BT_DPM_TRUE = 1, /**< DPM Policy status true. */ + BT_DPM_TRUE = 1, /**< DPM Policy status true. */ } bt_dpm_status_e; /** diff --git a/src/bluetooth-pbap.c b/src/bluetooth-pbap.c index a34b839..deda90c 100644 --- a/src/bluetooth-pbap.c +++ b/src/bluetooth-pbap.c @@ -90,9 +90,8 @@ int bt_pbap_client_connect(const char *address) _bt_convert_address_to_hex(&addr_hex, address); error_code = _bt_get_error_code(bluetooth_pbap_connect(&addr_hex)); - if (error_code != BT_ERROR_NONE) { + if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); - } return error_code; } @@ -109,9 +108,8 @@ int bt_pbap_client_disconnect(const char *address) _bt_convert_address_to_hex(&addr_hex, address); error_code = _bt_get_error_code(bluetooth_pbap_disconnect(&addr_hex)); - if (error_code != BT_ERROR_NONE) { + if (error_code != BT_ERROR_NONE) BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); - } return error_code; } diff --git a/test/bt_unit_test.c b/test/bt_unit_test.c index 1b5be64..47518a7 100644 --- a/test/bt_unit_test.c +++ b/test/bt_unit_test.c @@ -2764,7 +2764,7 @@ void __bt_pbap_vcard_list_cb(int result, const char *remote_address, TC_PRT("Remote Device: %s", remote_address); TC_PRT("vCard Count: %d", count); - for (i = 0; i count); - for (i = 0; icount; i++) { + for (i = 0; i < device_list->count; i++) { str = g_strdup((const gchar*)device_list->devices[i]); TC_PRT("%d: %s\n", i, str); g_free(str); @@ -7784,7 +7784,7 @@ int test_input_callback(void *data) if (device_list) { TC_PRT("list len %d", device_list->count); - for (i = 0; icount; i++) { + for (i = 0; i < device_list->count; i++) { str = g_strdup((const gchar*)device_list->devices[i]); TC_PRT("%d: %s\n", i, str); g_free(str); @@ -7804,7 +7804,7 @@ int test_input_callback(void *data) if (uuids_list) { TC_PRT("list len %d", uuids_list->count); - for (i = 0; icount; i++) { + for (i = 0; i < uuids_list->count; i++) { str = g_strdup(uuids_list->uuids[i]); TC_PRT("%d: %s\n", i, str); g_free(str); @@ -7824,7 +7824,7 @@ int test_input_callback(void *data) if (uuids_list) { TC_PRT("list len %d", uuids_list->count); - for (i = 0; icount; i++) { + for (i = 0; i < uuids_list->count; i++) { str = g_strdup(uuids_list->uuids[i]); TC_PRT("%d: %s\n", i, str); g_free(str);