summaryrefslogtreecommitdiffstats
path: root/bta/gatt/bta_gatts_utils.c
diff options
context:
space:
mode:
authorMatthew Xie <mattx@google.com>2012-09-18 16:19:52 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-09-18 16:19:53 -0700
commitf80d3d045eab5f002be4b5e8a3d2d376fdf7581a (patch)
tree4a1f17241e1af019e8d3328852bf93423258a23c /bta/gatt/bta_gatts_utils.c
parentd659d3ca8cbb1edc5d1dd42ef367e9336f0f269b (diff)
parentad2d45b15aae80ba254277c3d1fa036207d8b926 (diff)
downloadexternal_bluetooth_bluedroid-f80d3d045eab5f002be4b5e8a3d2d376fdf7581a.zip
external_bluetooth_bluedroid-f80d3d045eab5f002be4b5e8a3d2d376fdf7581a.tar.gz
external_bluetooth_bluedroid-f80d3d045eab5f002be4b5e8a3d2d376fdf7581a.tar.bz2
Merge "Revert "Header file and whitespace cleanups"" into jb-mr1-dev
Diffstat (limited to 'bta/gatt/bta_gatts_utils.c')
-rw-r--r--bta/gatt/bta_gatts_utils.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/bta/gatt/bta_gatts_utils.c b/bta/gatt/bta_gatts_utils.c
index e59f6b2..8f00793 100644
--- a/bta/gatt/bta_gatts_utils.c
+++ b/bta/gatt/bta_gatts_utils.c
@@ -2,7 +2,7 @@
**
** Name: bta_gattc_utils.c
**
-** Description: This file contains the GATT client utility
+** Description: This file contains the GATT client utility
** function.
**
** Copyright (c) 2003-2010, Broadcom Corp., All Rights Reserved.
@@ -124,7 +124,7 @@ tBTA_GATTS_SRVC_CB * bta_gatts_find_srvc_cb_by_srvc_id(tBTA_GATTS_CB *p_cb, UINT
APPL_TRACE_DEBUG1("bta_gatts_find_srvc_cb_by_srvc_id service_id=%d", service_id);
for (i = 0; i < BTA_GATTS_MAX_SRVC_NUM; i ++)
{
- if (p_cb->srvc_cb[i].in_use &&
+ if (p_cb->srvc_cb[i].in_use &&
p_cb->srvc_cb[i].service_id == service_id)
{
APPL_TRACE_DEBUG1("bta_gatts_find_srvc_cb_by_srvc_id found service cb index =%d", i);
@@ -150,14 +150,14 @@ tBTA_GATTS_SRVC_CB * bta_gatts_find_srvc_cb_by_attr_id(tBTA_GATTS_CB *p_cb, UINT
{
if (/* middle service */
(i < (BTA_GATTS_MAX_SRVC_NUM - 1) &&
- p_cb->srvc_cb[i].in_use &&
- p_cb->srvc_cb[i + 1].in_use &&
+ p_cb->srvc_cb[i].in_use &&
+ p_cb->srvc_cb[i + 1].in_use &&
attr_id >= p_cb->srvc_cb[i].service_id &&
attr_id < p_cb->srvc_cb[i + 1].service_id) ||
/* last active service */
(i < (BTA_GATTS_MAX_SRVC_NUM - 1) &&
- p_cb->srvc_cb[i].in_use &&
- !p_cb->srvc_cb[i + 1].in_use &&
+ p_cb->srvc_cb[i].in_use &&
+ !p_cb->srvc_cb[i + 1].in_use &&
attr_id >= p_cb->srvc_cb[i].service_id) ||
/* last service incb */
(i == (BTA_GATTS_MAX_SRVC_NUM - 1) &&
@@ -220,4 +220,4 @@ BOOLEAN bta_gatts_uuid_compare(tBT_UUID tar, tBT_UUID src)
-#endif
+#endif