summaryrefslogtreecommitdiffstats
path: root/src/adv.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-15 17:53:26 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-15 17:53:26 +0200
commit816032140813972e230863a002b4acd1b15d2bcf (patch)
tree9c2b26ea8c5680b6127217c7c3933fb8f5c30252 /src/adv.c
parent2dd9cec608a056ded9df373610854918f492a339 (diff)
split add_partition() into add_partition_cli() and add_partition_ncurses()
Diffstat (limited to 'src/adv.c')
-rw-r--r--src/adv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/adv.c b/src/adv.c
index 184a30f..2606afe 100644
--- a/src/adv.c
+++ b/src/adv.c
@@ -58,7 +58,7 @@
#include "tntfs.h"
#include "thfs.h"
#include "askloc.h"
-#include "addpart.h"
+#include "addpartn.h"
#include "io_redir.h"
extern const arch_fnct_t arch_gpt;
@@ -385,15 +385,17 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const
case 'Q':
part_free_list(list_part);
return;
+#ifdef HAVE_NCURSES
case 'a':
case 'A':
if(disk_car->arch!=&arch_none)
{
- list_part=add_partition(disk_car, list_part, current_cmd);
+ list_part=add_partition_ncurses(disk_car, list_part);
current_element=list_part;
rewrite=1;
}
break;
+#endif
}
#ifdef HAVE_NCURSES
if(current_element!=NULL)