Lines Matching defs:firstempty
443 int i, firstempty = -1;
449 if (!mesh_proto_paths[i].mpp_active && firstempty == -1)
450 firstempty = i;
452 if (firstempty < 0)
454 memcpy(&mesh_proto_paths[firstempty], mpp, sizeof(*mpp));
455 mesh_proto_paths[firstempty].mpp_active = 1;
463 int i, firstempty = -1;
469 if (!mesh_proto_metrics[i].mpm_active && firstempty == -1)
470 firstempty = i;
472 if (firstempty < 0)
474 memcpy(&mesh_proto_metrics[firstempty], mpm, sizeof(*mpm));
475 mesh_proto_metrics[firstempty].mpm_active = 1;