From ba4702b2087ab89219b1ca2c0149c591c0343cfc Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Mon, 10 Feb 2014 16:05:44 +0100 Subject: [PATCH] android/handsfree: Use uint16_t for buffer length in IPC messages This will match other IPC messages format. --- android/hal-msg.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/android/hal-msg.h b/android/hal-msg.h index 742054da7..aba98edb9 100644 --- a/android/hal-msg.h +++ b/android/hal-msg.h @@ -440,7 +440,7 @@ struct hal_cmd_handsfree_device_status_notif { #define HAL_OP_HANDSFREE_COPS_RESPONSE 0x09 struct hal_cmd_handsfree_cops_response { - uint32_t len; + uint16_t len; uint8_t buf[0]; } __attribute__((packed)); @@ -465,7 +465,7 @@ struct hal_cmd_handsfree_cind_response { #define HAL_OP_HANDSFREE_FORMATTED_AT_RESPONSE 0x0B struct hal_cmd_handsfree_formatted_at_response { - uint32_t len; + uint16_t len; uint8_t buf[0]; } __attribute__((packed)); @@ -499,7 +499,7 @@ struct hal_cmd_handsfree_clcc_response { uint8_t mode; uint8_t mpty; uint8_t type; - uint32_t number_len; + uint16_t number_len; uint8_t number[0]; } __attribute__((packed)); @@ -509,7 +509,7 @@ struct hal_cmd_handsfree_phone_state_change { uint8_t num_held; uint8_t state; uint8_t type; - uint32_t number_len; + uint16_t number_len; uint8_t number[0]; } __attribute__((packed)); @@ -737,7 +737,7 @@ struct hal_ev_handsfree_volume { #define HAL_EV_HANDSFREE_DIAL 0x87 struct hal_ev_handsfree_dial { - uint32_t number_len; + uint16_t number_len; uint8_t number[0]; } __attribute__((packed)); @@ -775,7 +775,7 @@ struct hal_ev_handsfree_chld { #define HAL_EV_HANDSFREE_UNKNOWN_AT 0x8F struct hal_ev_handsfree_unknown_at { - uint32_t len; + uint16_t len; uint8_t buf[0]; } __attribute__((packed)); -- 2.47.3