* Find the timeout of specified timer; return 0 if none. */
| 2321 | * Find the timeout of specified timer; return 0 if none. |
| 2322 | */ |
| 2323 | long |
| 2324 | peek_timer(short type, anything *arg) |
| 2325 | { |
| 2326 | timer_element *curr; |
| 2327 | |
| 2328 | for (curr = gt.timer_base; curr; curr = curr->next) { |
| 2329 | if (curr->func_index == type && curr->arg.a_void == arg->a_void) |
| 2330 | return curr->timeout; |
| 2331 | } |
| 2332 | return 0L; |
| 2333 | } |
| 2334 | |
| 2335 | /* |
| 2336 | * Move all object timers from src to dest, leaving src untimed. |
no outgoing calls
no test coverage detected