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:
parent
0232e6c9dc
commit
d7e6935ec2
11 changed files with 13 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue