mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 15:55:06 -05:00
local: replace is_step_change parameter of change handler with enum
Prepare for a new change type that will be added later.
This commit is contained in:
@@ -93,9 +93,9 @@ static void handle_end_of_slew(void *anything);
|
||||
|
||||
static void
|
||||
handle_step(struct timeval *raw, struct timeval *cooked, double dfreq,
|
||||
double doffset, int is_step_change, void *anything)
|
||||
double doffset, LCL_ChangeType change_type, void *anything)
|
||||
{
|
||||
if (is_step_change)
|
||||
if (change_type == LCL_ChangeStep)
|
||||
UTI_AddDoubleToTimeval(&slew_start, -doffset, &slew_start);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user