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:
Miroslav Lichvar
2014-05-30 13:02:45 +02:00
parent b69b648d18
commit 44c9744d69
10 changed files with 32 additions and 26 deletions

View File

@@ -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);
}