diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-05-23 23:00:55 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-05-23 23:00:55 +0300 |
| commit | 12be40e22aae582cca9abbd151031edaab800cae (patch) | |
| tree | 9a672c52b26357ba4c5ce07ca93b2d203594f36a /common | |
| parent | b28fd7d9121c63ae6a1737d890414ef8cce177e0 (diff) | |
| download | kmi-12be40e22aae582cca9abbd151031edaab800cae.tar.gz kmi-12be40e22aae582cca9abbd151031edaab800cae.zip | |
start writing documentation
Diffstat (limited to 'common')
| -rw-r--r-- | common/timer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/timer.c b/common/timer.c index 0a11dc8..f36c90d 100644 --- a/common/timer.c +++ b/common/timer.c @@ -133,13 +133,15 @@ struct timer *find_timer(id_t cid) return 0; } -void remove_timer(struct timer *t) +stat_t remove_timer(struct timer *t) { if (!t) return; struct sp_node *n = &timer_node_container(t)->sp_n; sp_remove(&sp_root(__cpu_timers()), n); + + return OK; } ticks_t nsecs_to_ticks(tunit_t nsecs) |
