summaryrefslogtreecommitdiffstats
path: root/src/godmode.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-17 16:53:27 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-17 16:53:27 +0200
commitc92ae23d4a890a9c80bb481c3814e42ebbd7b087 (patch)
tree559d1f364bb39ad2ae3464973b9b6504d6ffbdbc /src/godmode.c
parent4a47332941a59bc9ea4f0fe92d35e2c85f9409e1 (diff)
ask_mbr_order_i386(): make some variables more local
Diffstat (limited to 'src/godmode.c')
-rw-r--r--src/godmode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/godmode.c b/src/godmode.c
index c717733..35e342a 100644
--- a/src/godmode.c
+++ b/src/godmode.c
@@ -947,11 +947,9 @@ static list_part_t *search_part(disk_t *disk_car, const list_part_t *list_part_o
static void ask_mbr_order_i386(disk_t *disk_car,list_part_t *list_part)
{
partition_t *table[4];
- partition_t *table2[4];
int nbr_prim=0;
int i,pos=0;
int res;
- int car;
int quit=0;
list_part_t *element;
/* Initialisation */
@@ -972,6 +970,8 @@ static void ask_mbr_order_i386(disk_t *disk_car,list_part_t *list_part)
/* */
do
{
+ partition_t *table2[4];
+ int car;
unsigned int order;
/* sort table into table2 */
int part=0;