If a time is given, use it to timeout this function, otherwise the * function times out by its own means. */
| 203 | * function times out by its own means. |
| 204 | */ |
| 205 | void |
| 206 | set_occupation(int (*fn)(void), const char *txt, cmdcount_nht xtime) |
| 207 | { |
| 208 | if (xtime) { |
| 209 | go.occupation = timed_occupation; |
| 210 | timed_occ_fn = fn; |
| 211 | } else |
| 212 | go.occupation = fn; |
| 213 | go.occtxt = txt; |
| 214 | go.occtime = 0; |
| 215 | return; |
| 216 | } |
| 217 | |
| 218 | /* |
| 219 | void |
no outgoing calls
no test coverage detected