}
}
-static void _tdm_virtual_get_current_time(unsigned int *tv_sec, unsigned int *tv_usec)
+static void _tdm_virtual_get_current_time(long *tv_sec, long *tv_usec)
{
struct timespec tp;
if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0) {
- *tv_sec = tp.tv_sec;
+ *tv_sec = (long)tp.tv_sec;
*tv_usec = tp.tv_nsec / 1000;
} else {
*tv_sec = *tv_usec = 0;
{
tdm_virtual_output_data *output_data = user_data;
tdm_virtual_event_data *e = NULL, *ee = NULL;
- unsigned int tv_sec, tv_usec;
+ long tv_sec, tv_usec;
static unsigned int sequence = 0;
sequence++;
LIST_FOR_EACH_ENTRY_SAFE(e, ee, &output_data->timer_event_list, link) {
LIST_DEL(&e->link);
- _tdm_virtual_display_cb_event(output_data, e, sequence, tv_sec, tv_usec);
+ _tdm_virtual_display_cb_event(output_data, e, sequence, (unsigned int)tv_sec, (unsigned int)tv_usec);
free(e);
}
{
tdm_virtual_voutput_data *voutput_data = voutput;
tdm_virtual_output_data *output_data = NULL;
- unsigned int tv_sec, tv_usec;
+ long tv_sec, tv_usec;
static unsigned int sequence = 0;
tdm_virtual_event_data *event_data;
tdm_error ret = TDM_ERROR_NONE;