-In the function sensor_get_sensor() in src/libsensord/client.cpp boolean 'false' was being converted to void *
This was showing as a warning at compile time. For returning failed cases, NULL should be returned.
The call to sensor_info_to_sensor in this function also returns NULL when failed.
-Tested the code after change. Seems to be working fine.
Change-Id: Id100370c9bc8b9f62c86acb6968f766b10370d7b
API sensor_t sensord_get_sensor(sensor_type_t type)
{
- retvm_if (!get_sensor_list(), false, "Fail to get sensor list from server");
+ retvm_if (!get_sensor_list(), NULL, "Fail to get sensor list from server");
const sensor_info *info;