summaryrefslogtreecommitdiffstats
path: root/src/adv.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-17 16:47:37 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-17 16:47:37 +0200
commit34c5f933576574f60c427b4ab9b6e1e9c7e5beba (patch)
treec2dfe646cfa333d60ba5e96bf5f6ce972be403a0 /src/adv.c
parent1471f47a5c5b9d69863ec496bd7a57a9b0081d89 (diff)
Fix regression introduced in commit d4c1e0ec98dd42d74eb058c041ece12aa48d2830
Diffstat (limited to 'src/adv.c')
-rw-r--r--src/adv.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/adv.c b/src/adv.c
index 2606afe..348d003 100644
--- a/src/adv.c
+++ b/src/adv.c
@@ -40,6 +40,7 @@
#include "intrf.h"
#include "intrfn.h"
#include "fnctdsk.h"
+#include "chgtype.h"
#include "chgtypen.h"
#include "dirpart.h"
#include "fat.h"
@@ -200,10 +201,7 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const
log_info("\nInterface Advanced\n");
list_part=disk_car->arch->read_part(disk_car,verbose,0);
current_element=list_part;
- for(element=list_part;element!=NULL;element=element->next)
- {
- log_partition(disk_car,element->part);
- }
+ log_all_partitions(disk_car, list_part);
while(1)
{
const char *options;
@@ -575,7 +573,10 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const
break;
case 't':
case 'T':
- change_part_type_ncurses(disk_car, current_element->part);
+ if(*current_cmd!=NULL)
+ change_part_type_cli(disk_car, current_element->part, current_cmd);
+ else
+ change_part_type_ncurses(disk_car, current_element->part);
rewrite=1;
break;
}