| 242 | } |
| 243 | |
| 244 | struct cf_per_box * |
| 245 | cf_per_box(int box_id) |
| 246 | { |
| 247 | struct cf_per_box *c; |
| 248 | |
| 249 | for (c = per_box_configs; c; c = c->next) |
| 250 | if (c->box_id == box_id) |
| 251 | return c; |
| 252 | |
| 253 | c = xmalloc(sizeof(*c)); |
| 254 | memset(c, 0, sizeof(*c)); |
| 255 | c->next = per_box_configs; |
| 256 | per_box_configs = c; |
| 257 | c->box_id = box_id; |
| 258 | return c; |
| 259 | } |
no test coverage detected
searching dependent graphs…