* notify it to the system console and then terminate the FRSH
* implementation and dependant applications
**/
-int fosa_rel_timer_arm (fosa_timer_id_t timerid, const fosa_rel_time_t *value)
+int fosa_rel_timer_arm(fosa_timer_id_t timerid, const fosa_rel_time_t *value)
{
struct itimerspec when;
struct itimerspec when;
/* non-periodic one shot timer */
- when.it_value= fosa_abs_time_to_timespec(*value);
- when.it_interval=zero_time;
+ when.it_value = fosa_abs_time_to_timespec(*value);
+ when.it_interval = zero_time;
return timer_settime(timerid, TIMER_ABSTIME, &when, NULL);
}
int ret;
struct itimerspec time;
- if (remaining_time == NULL)
+ if (!remaining_time)
return FOSA_EINVAL;
ret = timer_gettime(timerid, &time);
int ret;
struct itimerspec time;
- if (remaining_time == NULL)
+ if (!remaining_time)
return FOSA_EINVAL;
ret = timer_gettime(timerid, &time);