summaryrefslogtreecommitdiff
path: root/android/hal-health.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-07-01 14:06:36 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-07-03 11:41:05 +0300
commit697110ce07ff6fe890b0ebce5476a37947b78d88 (patch)
tree4a50fe8e63d42a810a1ec0038c29deff2d0677e2 /android/hal-health.c
parente0d8e36781731d1f0793bab314cdf382b59fe307 (diff)
downloadbluez-697110ce07ff6fe890b0ebce5476a37947b78d88.tar.gz
android: Fix using plain integer as NULL pointer
Diffstat (limited to 'android/hal-health.c')
-rw-r--r--android/hal-health.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/android/hal-health.c b/android/hal-health.c
index 858d4990c..20ba45969 100644
--- a/android/hal-health.c
+++ b/android/hal-health.c
@@ -139,7 +139,7 @@ static bt_status_t register_application(bthl_reg_param_t *reg, int *app_id)
status = hal_ipc_cmd(HAL_SERVICE_ID_HEALTH, HAL_OP_HEALTH_MDEP,
sizeof(*mdep) + mdep->descr_len,
- buf, 0, NULL, NULL);
+ buf, NULL, NULL, NULL);
if (status != BT_STATUS_SUCCESS)
return status;
@@ -162,7 +162,7 @@ static bt_status_t unregister_application(int app_id)
cmd.app_id = app_id;
return hal_ipc_cmd(HAL_SERVICE_ID_HEALTH, HAL_OP_HEALTH_UNREG_APP,
- sizeof(cmd), &cmd, 0, NULL, NULL);
+ sizeof(cmd), &cmd, NULL, NULL, NULL);
}
static bt_status_t connect_channel(int app_id, bt_bdaddr_t *bd_addr,
@@ -208,7 +208,7 @@ static bt_status_t destroy_channel(int channel_id)
cmd.channel_id = channel_id;
return hal_ipc_cmd(HAL_SERVICE_ID_HEALTH, HAL_OP_HEALTH_DESTROY_CHANNEL,
- sizeof(cmd), &cmd, 0, NULL, NULL);
+ sizeof(cmd), &cmd, NULL, NULL, NULL);
}
static bt_status_t init(bthl_callbacks_t *callbacks)
@@ -231,7 +231,7 @@ static bt_status_t init(bthl_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;
@@ -255,7 +255,7 @@ static void cleanup(void)
cmd.service_id = HAL_SERVICE_ID_HEALTH;
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_HEALTH);
}