Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bsdinstall/partedit/gpart_ops.c
Show First 20 Lines • Show All 1,148 Lines • ▼ Show 20 Lines | case BSDDIALOG_EXTRA: /* Options */ | ||||
for (i = 0; i < nitems(items); i++) { | for (i = 0; i < nitems(items); i++) { | ||||
if (init_allocated) | if (init_allocated) | ||||
free((char*)items[i].init); | free((char*)items[i].init); | ||||
items[i].init = items[i].value; | items[i].init = items[i].value; | ||||
} | } | ||||
init_allocated = true; | init_allocated = true; | ||||
goto addpartform; | goto addpartform; | ||||
} | } | ||||
} else { /* auto partitioning */ | |||||
items[0].value = strdup(items[0].init); | |||||
items[1].value = strdup(items[1].init); | |||||
items[2].value = strdup(items[2].init); | |||||
if (nitems > 3) | |||||
items[3].value = strdup(items[3].init); | |||||
pstef: Isn't indentation wrong here? | |||||
Done Inline Actionsfixed, thank you. asiciliano: fixed, thank you. | |||||
} | } | ||||
/* | /* | ||||
* If the user changed the fs type after specifying options, undo | * If the user changed the fs type after specifying options, undo | ||||
* their choices in favor of the new filesystem's defaults. | * their choices in favor of the new filesystem's defaults. | ||||
*/ | */ | ||||
if (strcmp(options_fstype, items[0].value) != 0) { | if (strcmp(options_fstype, items[0].value) != 0) { | ||||
strncpy(options_fstype, items[0].value, sizeof(options_fstype)); | strncpy(options_fstype, items[0].value, sizeof(options_fstype)); | ||||
▲ Show 20 Lines • Show All 374 Lines • Show Last 20 Lines |
Isn't indentation wrong here?