| 1691 | static struct fill_chain *fill_cfg; |
| 1692 | |
| 1693 | void add_fill_function(void *data, int (*fill)(void *)) |
| 1694 | { |
| 1695 | struct fill_chain *new_fill = xmalloc(sizeof(*new_fill)); |
| 1696 | struct fill_chain **linkp = &fill_cfg; |
| 1697 | new_fill->data = data; |
| 1698 | new_fill->fill = fill; |
| 1699 | new_fill->next = NULL; |
| 1700 | while (*linkp) |
| 1701 | linkp = &(*linkp)->next; |
| 1702 | *linkp = new_fill; |
| 1703 | } |
| 1704 | |
| 1705 | void fill_active_slots(void) |
| 1706 | { |
no test coverage detected