diff options
author | Grzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com> | 2014-10-17 15:38:14 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-10-24 14:04:33 +0200 |
commit | 7e106e7451f52e0de0f00a0c82f16f9460d7d10c (patch) | |
tree | 251cb2ae251ec79472ebb376b5ecffd74b1f7a93 /android/tester-gatt.c | |
parent | 8e8ca99d434bb514090ca564974a9d7c5b3b5f17 (diff) | |
download | bluez-7e106e7451f52e0de0f00a0c82f16f9460d7d10c.tar.gz |
android/tester: Fix hardcoded length values
Lenght variable shouldn't be hardcoded in test case structs.
Diffstat (limited to 'android/tester-gatt.c')
-rw-r--r-- | android/tester-gatt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/android/tester-gatt.c b/android/tester-gatt.c index 38dd0ee56..97fe0f0c1 100644 --- a/android/tester-gatt.c +++ b/android/tester-gatt.c @@ -596,7 +596,7 @@ static struct set_read_params set_read_param_1 = { .srvc_id = &service_1, .char_id = &characteristic_1, .value = value_1, - .len = 1, + .len = sizeof(value_1), .status = BT_STATUS_SUCCESS }; @@ -620,7 +620,7 @@ static struct set_read_params set_read_param_4 = { .char_id = &characteristic_1, .descr_id = &desc_1, .value = value_1, - .len = 1, + .len = sizeof(value_1), .status = BT_STATUS_SUCCESS }; |