summaryrefslogtreecommitdiffstats
path: root/src/fnctdsk.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-17 16:52:13 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-17 16:52:13 +0200
commit15526c4410bdcb758bae3fe54011e416a28d03fe (patch)
tree7d5087fa0a1818be40a57deab9f7b542a9715e99 /src/fnctdsk.c
parent26b107a08d2e5f6f6db913f63b4fb3ebf742215d (diff)
get_geometry_from_list_part: make "score" variable more local
Diffstat (limited to 'src/fnctdsk.c')
-rw-r--r--src/fnctdsk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fnctdsk.c b/src/fnctdsk.c
index a647c47..fc43c21 100644
--- a/src/fnctdsk.c
+++ b/src/fnctdsk.c
@@ -375,7 +375,6 @@ unsigned int get_geometry_from_list_part(const disk_t *disk_car, const list_part
{
const unsigned int head_list[]={8,16,32,64,128,240,255,0};
unsigned int best_score;
- unsigned int score;
unsigned int i;
unsigned int heads_per_cylinder=disk_car->geom.heads_per_cylinder;
disk_t *new_disk_car=(disk_t *)MALLOC(sizeof(*new_disk_car));
@@ -383,6 +382,7 @@ unsigned int get_geometry_from_list_part(const disk_t *disk_car, const list_part
best_score=get_geometry_from_list_part_aux(new_disk_car, list_part, verbose);
for(i=0; head_list[i]!=0; i++)
{
+ unsigned int score;
new_disk_car->geom.heads_per_cylinder=head_list[i];
score=get_geometry_from_list_part_aux(new_disk_car, list_part, verbose);
if(score >= best_score)