Skip to contentSkip to conversation

android/tester: Fix duplicate const

PATCH In review Luiz Augusto von Dentz 1 participant 4 messages Aug 7, 2014 – Aug 8, 2014 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/3 android/tester: Fix duplicate const

From: Luiz Augusto von Dentz <[email protected]>

---
 android/tester-main.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
android/tester-main.h +1 -1
index 5a5cba4..3f0d46e 100644
@@ -358,7 +358,7 @@ struct test_case {
 	const uint8_t emu_type;
 	const char *title;
 	const uint16_t step_num;
-	const struct step const *step;
+	const struct step *step;
 };
 
 /* Get, remove test cases API */
Signature · 1 line
1.9.3
author maintainer
#1 lore raw

PATCH 2/3 android/tester-pan: Make cid_data static

From: Luiz Augusto von Dentz <[email protected]>

---
 android/tester-pan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
android/tester-pan.c +1 -1
index da5b771..c293022 100644
@@ -28,7 +28,7 @@ struct emu_cid_data {
 	uint16_t nap_cid;
 };
 
-struct emu_cid_data cid_data;
+static struct emu_cid_data cid_data;
 static uint8_t pan_conn_req_pdu[] = { 0x01, 0x01, 0x02, 0x11, 0x16,
 								0x11, 0x15 };
 static uint8_t pan_conn_rsp_pdu[] = { 0x01, 0x02, 0x00, 0x00 };
Signature · 1 line
1.9.3
author maintainer
#2 lore raw

PATCH 3/3 android/tester: Fix mixing different enum types

In reply to Luiz Augusto von Dentz

From: Luiz Augusto von Dentz <[email protected]>

---
 android/tester-main.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
android/tester-main.h +2 -2
index 3f0d46e..54c53f0 100644
@@ -318,8 +318,8 @@ struct emu_set_l2cap_data {
  * matching with expected step data.
  */
 struct bt_callback_data {
-	bt_state_t state;
-	bt_status_t status;
+	int state;
+	int status;
 	int num_properties;
 	bt_property_t *properties;
 
Signature · 1 line
1.9.3
author maintainer
#3 lore raw
In reply to Luiz Augusto von Dentz

Hi,

Quoted 20 lines · Luiz Augusto von Dentz

From: Luiz Augusto von Dentz <[email protected]>

---
 android/tester-main.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
android/tester-main.h +1 -2
index 5a5cba4..3f0d46e 100644
@@ -358,7 +358,7 @@ struct test_case {
        const uint8_t emu_type;
        const char *title;
        const uint16_t step_num;
-       const struct step const *step;
+       const struct step *step;
 };
 
 /* Get, remove test cases API */
--
Quoted 1 line

1.9.3

Patches 1 and 2 pushed, patch 3 will be redesigned.

Signature · 1 line
Luiz Augusto von Dentz