From cfc9452c0bb9a4c7697f8280a2348a4372ba1762 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Tue, 10 Jun 2014 14:52:02 +0200 Subject: [PATCH] android/hal-pan: Use compact syntax for event handlers --- android/hal-pan.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/android/hal-pan.c b/android/hal-pan.c index a9ac4ff24..e2bc02e2a 100644 --- a/android/hal-pan.c +++ b/android/hal-pan.c @@ -65,16 +65,10 @@ static void handle_ctrl_state(void *buf, uint16_t len) * index in table equals to 'opcode - HAL_MINIMUM_EVENT' */ static const struct hal_ipc_handler ev_handlers[] = { - { /* HAL_EV_PAN_CTRL_STATE */ - .handler = handle_ctrl_state, - .var_len = false, - .data_len = sizeof(struct hal_ev_pan_ctrl_state), - }, - { /* HAL_EV_PAN_CONN_STATE */ - .handler = handle_conn_state, - .var_len = false, - .data_len = sizeof(struct hal_ev_pan_conn_state), - }, + /* HAL_EV_PAN_CTRL_STATE */ + { handle_ctrl_state, false, sizeof(struct hal_ev_pan_ctrl_state) }, + /* HAL_EV_PAN_CONN_STATE */ + { handle_conn_state, false, sizeof(struct hal_ev_pan_conn_state) }, }; static bt_status_t pan_enable(int local_role) -- 2.47.3