| 212 | } |
| 213 | |
| 214 | static void |
| 215 | graph_cleanup(struct graph *graph) |
| 216 | { |
| 217 | struct graph_node *graph_node; |
| 218 | |
| 219 | while (!STAILQ_EMPTY(&graph->node_list)) { |
| 220 | graph_node = STAILQ_FIRST(&graph->node_list); |
| 221 | STAILQ_REMOVE_HEAD(&graph->node_list, next); |
| 222 | free(graph_node); |
| 223 | } |
| 224 | } |
| 225 | |
| 226 | static int |
| 227 | graph_node_init(struct graph *graph) |
no test coverage detected