From 6174e60abbcdc5b62a52fc03c373cee0b77ebcbf Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org" Date: Tue, 22 Jan 2008 01:25:34 +0000 Subject: Max Kellermann : - Pass next_alarm to __run() only if there is an alarm - Eliminate the "timeout" parameter - the alarm functions get_next_alarm_run() and do_alarm_run() return an timeval pointer instead of a boolean --- include/alarm.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/alarm.h b/include/alarm.h index f0bbb95..3569025 100644 --- a/include/alarm.h +++ b/include/alarm.h @@ -26,8 +26,10 @@ void add_alarm(struct alarm_list *alarm, unsigned long sc, unsigned long usc); void del_alarm(struct alarm_list *alarm); -int get_next_alarm_run(struct timeval *next_alarm); +struct timeval * +get_next_alarm_run(struct timeval *next_alarm); -int do_alarm_run(struct timeval *next_alarm); +struct timeval * +do_alarm_run(struct timeval *next_alarm); #endif -- cgit v1.2.3