| 22 | } |
| 23 | |
| 24 | struct link * |
| 25 | link_find(const char *name) |
| 26 | { |
| 27 | struct link *link; |
| 28 | |
| 29 | if (name == NULL) |
| 30 | return NULL; |
| 31 | |
| 32 | TAILQ_FOREACH(link, &link_list, node) |
| 33 | if (strcmp(link->name, name) == 0) |
| 34 | return link; |
| 35 | |
| 36 | return NULL; |
| 37 | } |
| 38 | |
| 39 | struct link * |
| 40 | link_next(struct link *link) |
no test coverage detected