| 40 | ClientData JunkClientData; |
| 41 | |
| 42 | static unsigned int |
| 43 | hash(Timer *t) |
| 44 | { |
| 45 | /* We can hash on the trigger time, even though it can change over |
| 46 | ** the life of a timer via either the periodic bit or the tmr_reset() |
| 47 | ** call. This is because both of those guys call l_resort(), which |
| 48 | ** recomputes the hash and moves the timer to the appropriate list. |
| 49 | */ |
| 50 | return ((unsigned int)t->time.tv_sec ^ (unsigned int)t->time.tv_usec) % HASH_SIZE; |
| 51 | } |
| 52 | |
| 53 | static void |
| 54 | l_add(Timer *t) |
no outgoing calls
no test coverage detected