summaryrefslogtreecommitdiffstats
path: root/src/tdiskop.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-15 13:41:20 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-15 13:41:20 +0200
commitfd9c697a03a5501e326479192dad98e2d6fdb64e (patch)
tree7c5862a7d2408640a11425922f32b66e313cc48f /src/tdiskop.c
parent38084f56e0fea23249b010f0fc37c20c33871840 (diff)
Split change_geometry() into change_geometry_cli() and change_geometry_ncurses()
Diffstat (limited to 'src/tdiskop.c')
-rw-r--r--src/tdiskop.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tdiskop.c b/src/tdiskop.c
index 2df38bb..091520b 100644
--- a/src/tdiskop.c
+++ b/src/tdiskop.c
@@ -45,6 +45,7 @@
#include "tdelete.h"
#include "tdiskop.h"
#include "geometry.h"
+#include "geometryn.h"
extern const arch_fnct_t arch_i386;
extern const arch_fnct_t arch_none;
@@ -76,7 +77,7 @@ static int menu_disk_cli(disk_t *disk_car, const int verbose,int dump_ind, const
else if(strncmp(*current_cmd,"geometry,",9)==0)
{
(*current_cmd)+=9;
- change_geometry(disk_car, current_cmd);
+ change_geometry_cli(disk_car, current_cmd);
}
else if(strncmp(*current_cmd,"advanced",8)==0)
{
@@ -172,7 +173,7 @@ static int menu_disk_ncurses(disk_t *disk, const int verbose,int dump_ind, const
break;
case 'g':
case 'G':
- change_geometry(disk, current_cmd);
+ change_geometry_ncurses(disk);
break;
case 'o':
case 'O':