summaryrefslogtreecommitdiffstats
path: root/src/tdiskop.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-17 17:06:55 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-17 17:06:55 +0200
commiteb7e36f2e6270b34fb545000ab2860d67b6693f9 (patch)
tree5562d7e10dde9a7b84b5ddf35e55a5ed2f5df3df /src/tdiskop.c
parent5d02ff88bb371393e24939889f2022374d9e84de (diff)
menu_disk_cli(): make some variables more local
Diffstat (limited to 'src/tdiskop.c')
-rw-r--r--src/tdiskop.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/tdiskop.c b/src/tdiskop.c
index 091520b..1ab0fba 100644
--- a/src/tdiskop.c
+++ b/src/tdiskop.c
@@ -58,8 +58,6 @@ static int menu_disk_cli(disk_t *disk_car, const int verbose,int dump_ind, const
int align=1;
int ask_part_order=0;
unsigned int expert=0;
- char options[16];
- strcpy(options, "AGOPTQ");
while(1)
{
while(*current_cmd[0]==',')
@@ -111,11 +109,9 @@ static int menu_disk_ncurses(disk_t *disk, const int verbose,int dump_ind, const
{
int align=1;
int ask_part_order=0;
- int command;
- int real_key;
unsigned int expert=0;
char options[16];
- static struct MenuItem menuMain[]=
+ static const struct MenuItem menuMain[]=
{
{'A',"Analyse","Analyse current partition structure and search for lost partitions"},
{'T',"Advanced","Filesystem Utils"},
@@ -135,6 +131,8 @@ static int menu_disk_ncurses(disk_t *disk, const int verbose,int dump_ind, const
strcat(options,"D");
while(1)
{
+ int real_key;
+ int command;
aff_copy(stdscr);
wmove(stdscr,5,0);
wprintw(stdscr, "%s\n", disk->description_short(disk));