From 77fa36d7c6033cd9eeba2b739b51e389e91af95d Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 13 Mar 2013 14:07:23 +0100 Subject: include/timer: return setitimer return value Signed-off-by: Karel Zak --- include/timer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/timer.h') diff --git a/include/timer.h b/include/timer.h index b820453d4..79ef64919 100644 --- a/include/timer.h +++ b/include/timer.h @@ -4,7 +4,7 @@ #include #include -static inline void setup_timer( +static inline int setup_timer( struct itimerval *timer, struct itimerval *old_timer, struct sigaction *old_sa, @@ -17,7 +17,7 @@ static inline void setup_timer( sa.sa_flags = SA_RESETHAND; sigaction(SIGALRM, &sa, old_sa); - setitimer(ITIMER_REAL, timer, old_timer); + return setitimer(ITIMER_REAL, timer, old_timer); } static inline void cancel_timer( -- cgit v1.2.3-55-g7522