summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2013-03-13 14:07:23 +0100
committerKarel Zak <kzak@redhat.com>2013-03-13 14:07:23 +0100
commit77fa36d7c6033cd9eeba2b739b51e389e91af95d (patch)
treef160e1c2ecb568b7712a100f1a7dfc7afc86d4dc /include
parentd4543f843d1fa97bd8717f33ea60c81ab1fe1176 (diff)
downloadutil-linux-77fa36d7c6033cd9eeba2b739b51e389e91af95d.tar.gz
include/timer: return setitimer return value
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/timer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/timer.h b/include/timer.h
index b820453d..79ef6491 100644
--- a/include/timer.h
+++ b/include/timer.h
@@ -4,7 +4,7 @@
#include <signal.h>
#include <sys/time.h>
-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(