[Frugalware-darcs] setup-current: formatdisk: moved swap partition selection to a separate function

VMiklos vmiklos at frugalware.org
Thu Mar 16 17:54:36 CET 2006


[formatdisk: moved swap partition selection to a separate function
VMiklos <vmiklos at frugalware.org>**20051111120120] {
hunk ./src/plugins/formatdisk.c 133
+int selswap(void)
+{
+	char **arraychk;
+	GList *partlist;
+
+	arraychk = parts2dialog(partschk);
+
+	dialog_vars.backtitle=gen_backtitle(_("Setting up swap space"));
+	dlg_put_backtitle();
+	partlist = fw_checklist(_("Setting up swap partitions"),
+		_("Please select which swap partitions do you want Frugalware "
+		"to use:"), 0, 0, 0, g_list_length(partschk)/3, arraychk,
+		FLAG_CHECK);
+	return(partlist);
+}
+
hunk ./src/plugins/formatdisk.c 154
-	char **arraychk;
hunk ./src/plugins/formatdisk.c 177
-	array = parts2dialog(parts);
-	arraychk = parts2dialog(partschk);
+	partlist = selswap();
hunk ./src/plugins/formatdisk.c 179
-	dialog_vars.backtitle=gen_backtitle(_("Setting up swap space"));
-	dlg_put_backtitle();
-	partlist = fw_checklist(_("Setting up swap partitions"),
-		_("Please select which swap partitions do you want Frugalware "
-		"to use:"), 0, 0, 0, g_list_length(partschk)/3, arraychk,
-		FLAG_CHECK);
hunk ./src/plugins/formatdisk.c 183
-	/*dialog_vars.backtitle=gen_backtitle(_("Setting up root the partition"));
+	/*array = parts2dialog(parts);
+	dialog_vars.backtitle=gen_backtitle(_("Setting up root the partition"));
}


More information about the Frugalware-darcs mailing list