diff options
author | Jakub Tyszkowski <jakub.tyszkowski@tieto.com> | 2015-01-08 10:17:39 +0100 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2015-01-13 14:46:53 +0100 |
commit | 20c6a6cd64fcbd6166ced434e34dc4f1d4d50837 (patch) | |
tree | 8a84fd73323c624bbaf9d326086679f40c617871 /android/tester-main.h | |
parent | 0037f01442630941ff159790c7179805058b3690 (diff) | |
download | bluez-20c6a6cd64fcbd6166ced434e34dc4f1d4d50837.tar.gz |
android/tester: Use uint16_t for handles
Handles are only 2 bytes in size. We should use uint16_t to be able to
safely cast iovec with such handle to uint16_t and vice versa.
Diffstat (limited to 'android/tester-main.h')
-rw-r--r-- | android/tester-main.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/android/tester-main.h b/android/tester-main.h index dc1a2bb77..7fe73fe41 100644 --- a/android/tester-main.h +++ b/android/tester-main.h @@ -651,11 +651,11 @@ struct bt_callback_data { int offset; bool is_long; int connected; - int *attr_handle; - int *srvc_handle; - int *inc_srvc_handle; - int *char_handle; - int *desc_handle; + uint16_t *attr_handle; + uint16_t *srvc_handle; + uint16_t *inc_srvc_handle; + uint16_t *char_handle; + uint16_t *desc_handle; btgatt_srvc_id_t *service; btgatt_gatt_id_t *characteristic; btgatt_gatt_id_t *descriptor; @@ -709,9 +709,9 @@ struct step { void *set_data_to; int set_data_len; - int *store_srvc_handle; - int *store_char_handle; - int *store_desc_handle; + uint16_t *store_srvc_handle; + uint16_t *store_char_handle; + uint16_t *store_desc_handle; }; struct test_case { |