Channel check interval is clock_time_t

Fix channel_check_interval routine in struct rdc_driver to be of type
clock_time_t -- otherwise this may overflow on some architectures.
This commit is contained in:
Ralf Schlatterbeck 2016-05-07 11:46:27 +02:00
parent 0232e6c9dc
commit d7e6935ec2
11 changed files with 13 additions and 11 deletions

View file

@ -918,7 +918,7 @@ turn_off(int keep_radio_on)
}
}
/*---------------------------------------------------------------------------*/
static unsigned short
static clock_time_t
channel_check_interval(void)
{
return (1ul * CLOCK_SECOND * DEFAULT_PERIOD) / RTIMER_ARCH_SECOND;