2014-04-09 09:26:53

by Marcin Kraglak

[permalink] [raw]
Subject: [PATCH] android/hal-gatt: Fix typo in struct name

It causes ipc error due to incorrect message length.
---
android/hal-gatt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/android/hal-gatt.c b/android/hal-gatt.c
index 5e7443c..d8c0d54 100644
--- a/android/hal-gatt.c
+++ b/android/hal-gatt.c
@@ -536,7 +536,7 @@ static const struct hal_ipc_handler ev_handlers[] = {
sizeof(struct hal_ev_gatt_server_service_added) },
/* HAL_EV_GATT_SERVER_INC_SRVC_ADDED */
{ handle_included_service_added, false,
- sizeof(struct hal_ev_gatt_server_service_added) },
+ sizeof(struct hal_ev_gatt_server_inc_srvc_added) },
/* HAL_EV_GATT_SERVER_CHAR_ADDED */
{ handle_characteristic_added, false,
sizeof(struct hal_ev_gatt_server_characteristic_added) },
--
1.8.3.1



2014-04-09 18:50:14

by Szymon Janc

[permalink] [raw]
Subject: Re: [PATCH] android/hal-gatt: Fix typo in struct name

Hi Marcin,

On Wednesday 09 April 2014 11:26:53 Marcin Kraglak wrote:
> It causes ipc error due to incorrect message length.
> ---
> android/hal-gatt.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/android/hal-gatt.c b/android/hal-gatt.c
> index 5e7443c..d8c0d54 100644
> --- a/android/hal-gatt.c
> +++ b/android/hal-gatt.c
> @@ -536,7 +536,7 @@ static const struct hal_ipc_handler ev_handlers[] = {
> sizeof(struct hal_ev_gatt_server_service_added) },
> /* HAL_EV_GATT_SERVER_INC_SRVC_ADDED */
> { handle_included_service_added, false,
> - sizeof(struct hal_ev_gatt_server_service_added) },
> + sizeof(struct hal_ev_gatt_server_inc_srvc_added) },
> /* HAL_EV_GATT_SERVER_CHAR_ADDED */
> { handle_characteristic_added, false,
> sizeof(struct hal_ev_gatt_server_characteristic_added) },

Pushed, thanks.

--
Szymon K. Janc
[email protected]