diff options
Diffstat (limited to 'src/alarm.c')
-rw-r--r-- | src/alarm.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/alarm.c b/src/alarm.c index 16e7a14..3467e7b 100644 --- a/src/alarm.c +++ b/src/alarm.c @@ -65,13 +65,9 @@ void del_alarm(struct alarm_list *alarm) void mod_alarm(struct alarm_list *alarm, unsigned long sc, unsigned long usc) { - struct timeval tv; - list_del(&alarm->head); set_alarm_expiration(alarm, sc, usc); - gettimeofday(&tv, NULL); - timeradd(&alarm->tv, &tv, &alarm->tv); - __add_alarm(alarm); + add_alarm(alarm); } int get_next_alarm(struct timeval *tv, struct timeval *next_alarm) |