summaryrefslogtreecommitdiffstats
path: root/src/intrface.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/intrface.c
parent2dd9cec608a056ded9df373610854918f492a339 (diff)
split add_partition() into add_partition_cli() and add_partition_ncurses()
Diffstat (limited to 'src/intrface.c')
-rw-r--r--src/intrface.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/intrface.c b/src/intrface.c
index 38d22cf..48fd438 100644
--- a/src/intrface.c
+++ b/src/intrface.c
@@ -31,9 +31,6 @@
#include "common.h"
#include "lang.h"
#include "intrf.h"
-#ifdef HAVE_NCURSES
-#include "intrfn.h"
-#endif
#include "godmode.h"
#include "fnctdsk.h"
#include "chgtypen.h"
@@ -44,6 +41,10 @@
#include "tload.h"
#include "intrface.h"
#include "addpart.h"
+#ifdef HAVE_NCURSES
+#include "intrfn.h"
+#include "addpartn.h"
+#endif
#define INTER_DISK_X 0
#define INTER_DISK_Y 7
@@ -342,7 +343,7 @@ static list_part_t *ask_structure_ncurses(disk_t *disk_car,list_part_t *list_par
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);
rewrite=1;
offset=0;
pos_num=0;