summaryrefslogtreecommitdiffstats
path: root/src/intrf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-02-27 08:35:28 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2008-02-27 08:35:28 +0100
commitb26cdf689df836f4657f66ffd4b1d0e4ae3e2c93 (patch)
treed80c6e9307c6ceb82b029a4a5037b41709ec8756 /src/intrf.c
parent003eff18676045b83b9cb92a0c2baebb011c893f (diff)
Change the display unit when changing the partition type
Diffstat (limited to 'src/intrf.c')
-rw-r--r--src/intrf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/intrf.c b/src/intrf.c
index d8ee938..f0c70e5 100644
--- a/src/intrf.c
+++ b/src/intrf.c
@@ -1419,26 +1419,32 @@ static int interface_partition_type_ncurses(disk_t *disk_car)
case 'i':
case 'I':
disk_car->arch=&arch_i386;
+ autoset_unit(disk_car);
break;
case 'g':
case 'G':
disk_car->arch=&arch_gpt;
+ autoset_unit(disk_car);
break;
case 'm':
case 'M':
disk_car->arch=&arch_mac;
+ autoset_unit(disk_car);
break;
case 'n':
case 'N':
disk_car->arch=&arch_none;
+ autoset_unit(disk_car);
break;
case 's':
case 'S':
disk_car->arch=&arch_sun;
+ autoset_unit(disk_car);
break;
case 'x':
case 'X':
disk_car->arch=&arch_xbox;
+ autoset_unit(disk_car);
break;
case 'q':
case 'Q':
@@ -1964,6 +1970,7 @@ int interface_partition_type(disk_t *disk_car, const int verbose, char**current_
{
(*current_cmd)+=strlen(arch_list[i]->part_name_option);
disk_car->arch=arch_list[i];
+ autoset_unit(disk_car);
keep_asking=1;
}
if(strncmp(*current_cmd, "ask_type", 8)==0)