summaryrefslogtreecommitdiffstats
path: root/src/intrf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-06-30 08:02:25 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2008-06-30 08:02:25 +0200
commit189f2a52da7ee6a8d2373ddb7a8c66280fff874f (patch)
treee65d7dbf505ba8a0b3185de2281861b4e7727f31 /src/intrf.c
parent1c78680c7e57c3db7ad77314cfe12899044154ce (diff)
Code cleanup in interface_partition_type_ncurses()
Diffstat (limited to 'src/intrf.c')
-rw-r--r--src/intrf.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/intrf.c b/src/intrf.c
index c40cc70..8deb21e 100644
--- a/src/intrf.c
+++ b/src/intrf.c
@@ -1444,38 +1444,33 @@ 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':
return 1;
}
}
+ autoset_unit(disk_car);
return 0;
}