summaryrefslogtreecommitdiffstats
path: root/src/parti386.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-17 17:03:39 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-17 17:03:39 +0200
commit7681beb13c5e1420c2bd99ee9e795cda418d9b24 (patch)
tree6e569ef0786d0fa7ee98f6e1e73de5647c8c268d /src/parti386.c
parent96e72ea0e9d2466b41c1547c878ea459c636b676 (diff)
init_structure_i386(): make some variables more local
Diffstat (limited to 'src/parti386.c')
-rw-r--r--src/parti386.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parti386.c b/src/parti386.c
index cbb04e4..e70ccba 100644
--- a/src/parti386.c
+++ b/src/parti386.c
@@ -1341,7 +1341,6 @@ static int is_part_known_i386(const partition_t *partition)
static void init_structure_i386(const disk_t *disk_car,list_part_t *list_part, const int verbose)
{
- unsigned int nbr_prim=0, nbr_log_block=0;
unsigned int vista_partition=0;
list_part_t *element;
list_part_t *new_list_part=NULL;
@@ -1378,7 +1377,9 @@ static void init_structure_i386(const disk_t *disk_car,list_part_t *list_part, c
{
/* log_block_size must be 0 or 1 for a valid partition table */
unsigned int log_block_size=0;
+ unsigned int nbr_log_block=0;
unsigned int biggest_log_block_size=0;
+ unsigned int nbr_prim=0;
list_part_t *end_log_block=NULL;
list_part_t *end_biggest_log_block=NULL;
/* Verify */