diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-07-01 14:06:36 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-07-03 11:41:05 +0300 |
commit | 697110ce07ff6fe890b0ebce5476a37947b78d88 (patch) | |
tree | 4a50fe8e63d42a810a1ec0038c29deff2d0677e2 /android/hal-hidhost.c | |
parent | e0d8e36781731d1f0793bab314cdf382b59fe307 (diff) | |
download | bluez-697110ce07ff6fe890b0ebce5476a37947b78d88.tar.gz |
android: Fix using plain integer as NULL pointer
Diffstat (limited to 'android/hal-hidhost.c')
-rw-r--r-- | android/hal-hidhost.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/android/hal-hidhost.c b/android/hal-hidhost.c index 949e2a015..31997e242 100644 --- a/android/hal-hidhost.c +++ b/android/hal-hidhost.c @@ -137,7 +137,7 @@ static bt_status_t hidhost_connect(bt_bdaddr_t *bd_addr) memcpy(cmd.bdaddr, bd_addr, sizeof(cmd.bdaddr)); return hal_ipc_cmd(HAL_SERVICE_ID_HIDHOST, HAL_OP_HIDHOST_CONNECT, - sizeof(cmd), &cmd, 0, NULL, NULL); + sizeof(cmd), &cmd, NULL, NULL, NULL); } static bt_status_t disconnect(bt_bdaddr_t *bd_addr) @@ -155,7 +155,7 @@ static bt_status_t disconnect(bt_bdaddr_t *bd_addr) memcpy(cmd.bdaddr, bd_addr, sizeof(cmd.bdaddr)); return hal_ipc_cmd(HAL_SERVICE_ID_HIDHOST, HAL_OP_HIDHOST_DISCONNECT, - sizeof(cmd), &cmd, 0, NULL, NULL); + sizeof(cmd), &cmd, NULL, NULL, NULL); } static bt_status_t virtual_unplug(bt_bdaddr_t *bd_addr) @@ -174,7 +174,7 @@ static bt_status_t virtual_unplug(bt_bdaddr_t *bd_addr) return hal_ipc_cmd(HAL_SERVICE_ID_HIDHOST, HAL_OP_HIDHOST_VIRTUAL_UNPLUG, - sizeof(cmd), &cmd, 0, NULL, NULL); + sizeof(cmd), &cmd, NULL, NULL, NULL); } static bt_status_t set_info(bt_bdaddr_t *bd_addr, bthh_hid_info_t hid_info) @@ -200,7 +200,7 @@ static bt_status_t set_info(bt_bdaddr_t *bd_addr, bthh_hid_info_t hid_info) memcpy(cmd.descr, hid_info.dsc_list, cmd.descr_len); return hal_ipc_cmd(HAL_SERVICE_ID_HIDHOST, HAL_OP_HIDHOST_SET_INFO, - sizeof(cmd), &cmd, 0, NULL, NULL); + sizeof(cmd), &cmd, NULL, NULL, NULL); } static bt_status_t get_protocol(bt_bdaddr_t *bd_addr, @@ -223,7 +223,7 @@ static bt_status_t get_protocol(bt_bdaddr_t *bd_addr, return hal_ipc_cmd(HAL_SERVICE_ID_HIDHOST, HAL_OP_HIDHOST_GET_PROTOCOL, - sizeof(cmd), &cmd, 0, NULL, NULL); + sizeof(cmd), &cmd, NULL, NULL, NULL); } static bt_status_t set_protocol(bt_bdaddr_t *bd_addr, @@ -246,7 +246,7 @@ static bt_status_t set_protocol(bt_bdaddr_t *bd_addr, return hal_ipc_cmd(HAL_SERVICE_ID_HIDHOST, HAL_OP_HIDHOST_SET_PROTOCOL, - sizeof(cmd), &cmd, 0, NULL, NULL); + sizeof(cmd), &cmd, NULL, NULL, NULL); } static bt_status_t get_report(bt_bdaddr_t *bd_addr, @@ -272,7 +272,7 @@ static bt_status_t get_report(bt_bdaddr_t *bd_addr, cmd.type = report_type; return hal_ipc_cmd(HAL_SERVICE_ID_HIDHOST, HAL_OP_HIDHOST_GET_REPORT, - sizeof(cmd), &cmd, 0, NULL, NULL); + sizeof(cmd), &cmd, NULL, NULL, NULL); } static bt_status_t set_report(bt_bdaddr_t *bd_addr, @@ -298,7 +298,7 @@ static bt_status_t set_report(bt_bdaddr_t *bd_addr, cmd->type = report_type; return hal_ipc_cmd(HAL_SERVICE_ID_HIDHOST, HAL_OP_HIDHOST_SET_REPORT, - sizeof(*cmd) + cmd->len, buf, 0, NULL, NULL); + sizeof(*cmd) + cmd->len, buf, NULL, NULL, NULL); } static bt_status_t send_data(bt_bdaddr_t *bd_addr, char *data) @@ -319,7 +319,7 @@ static bt_status_t send_data(bt_bdaddr_t *bd_addr, char *data) memcpy(cmd->data, data, cmd->len); return hal_ipc_cmd(HAL_SERVICE_ID_HIDHOST, HAL_OP_HIDHOST_SEND_DATA, - sizeof(*cmd) + cmd->len, buf, 0, NULL, NULL); + sizeof(*cmd) + cmd->len, buf, NULL, NULL, NULL); } static bt_status_t init(bthh_callbacks_t *callbacks) @@ -342,7 +342,7 @@ static bt_status_t init(bthh_callbacks_t *callbacks) cmd.mode = HAL_MODE_DEFAULT; ret = hal_ipc_cmd(HAL_SERVICE_ID_CORE, HAL_OP_REGISTER_MODULE, - sizeof(cmd), &cmd, 0, NULL, NULL); + sizeof(cmd), &cmd, NULL, NULL, NULL); if (ret != BT_STATUS_SUCCESS) { cbacks = NULL; @@ -366,7 +366,7 @@ static void cleanup(void) cmd.service_id = HAL_SERVICE_ID_HIDHOST; hal_ipc_cmd(HAL_SERVICE_ID_CORE, HAL_OP_UNREGISTER_MODULE, - sizeof(cmd), &cmd, 0, NULL, NULL); + sizeof(cmd), &cmd, NULL, NULL, NULL); hal_ipc_unregister(HAL_SERVICE_ID_HIDHOST); } |