MCPcopy Create free account
hub / github.com/cgsecurity/testdisk / only_one_bootable

Function only_one_bootable

src/godmode.c:154–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void only_one_bootable( list_part_t *list_part, const list_part_t *part_boot)
155{
156 list_part_t *element;
157 if(part_boot->part->status==STATUS_PRIM_BOOT)
158 for(element=list_part;element!=NULL;element=element->next)
159 {
160 if((element!=part_boot)&&(element->part->status==STATUS_PRIM_BOOT))
161 element->part->status=STATUS_PRIM;
162 }
163}
164
165#ifdef HAVE_NCURSES
166static int interface_part_bad_ncurses(disk_t *disk_car, list_part_t *list_part)

Callers 1

ask_structure_ncursesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected