util: modify UTI_*ToDouble functions to return double directly

This commit is contained in:
Miroslav Lichvar
2016-08-18 12:10:09 +02:00
parent 99cc94529d
commit cfe706f032
19 changed files with 67 additions and 70 deletions

View File

@@ -1040,7 +1040,7 @@ RTC_Linux_TimePreInit(time_t driftfile_time)
return 0;
}
UTI_DiffTimespecsToDouble(&sys_offset, &old_sys_time, &new_sys_time);
sys_offset = UTI_DiffTimespecsToDouble(&old_sys_time, &new_sys_time);
/* Set system time only if the step is larger than 1 second */
if (fabs(sys_offset) >= 1.0) {