* type has to be signed int
* change void * to char * when it uses for arithmetic
Change-Id: Ib6be183729a0208efbb3ab8249ad94f277446846
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
struct log_element {
log_id id;
- unsigned int type;
+ int type;
struct log_attr log_attr;
};
} else {
sensor_event_t *sensor_event = (sensor_event_t *)event;
sensor_id = sensor_event->sensor_id;
- sensor_event->data = (sensor_data_t *)((void *)sensor_event + sizeof(sensor_event_t));
+ sensor_event->data = (sensor_data_t *)((char *)sensor_event + sizeof(sensor_event_t));
sensor_data = sensor_event->data;
cur_time = sensor_event->data->timestamp;
accuracy = sensor_event->data->accuracy;
}
memcpy(event, sensor_events, sizeof(sensor_event_t));
- memcpy(event + sizeof(sensor_event_t), sensor_events->data, sensor_events->data_length);
+ memcpy((char *)event + sizeof(sensor_event_t), sensor_events->data, sensor_events->data_length);
id_vec.clear();
client_info_manager.get_listener_ids(sensor_id, event_type, id_vec);