| 103 | } |
| 104 | |
| 105 | static void |
| 106 | l_resort(Timer *t) |
| 107 | { |
| 108 | /* Remove the timer from its old list. */ |
| 109 | l_remove(t); |
| 110 | /* Recompute the hash. */ |
| 111 | t->hash = hash(t); |
| 112 | /* And add it back in to its new list, sorted correctly. */ |
| 113 | l_add(t); |
| 114 | } |
| 115 | |
| 116 | void |
| 117 | tmr_init(void) |