summaryrefslogtreecommitdiffstats
path: root/src/ext2_sbn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ext2_sbn.c')
-rw-r--r--src/ext2_sbn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ext2_sbn.c b/src/ext2_sbn.c
index 87344b1..14ec0ae 100644
--- a/src/ext2_sbn.c
+++ b/src/ext2_sbn.c
@@ -101,8 +101,7 @@ list_part_t *search_superblock(disk_t *disk_car, partition_t *partition, const i
for(hd_offset=0;hd_offset<partition->part_size && nbr_sb<10 && ind_stop==0;hd_offset=next_sb(hd_offset))
{
#ifdef HAVE_NCURSES
- unsigned long int percent;
- percent=hd_offset*100/partition->part_size;
+ const unsigned long int percent=hd_offset*100/partition->part_size;
if(interface>0 && percent!=old_percent)
{
wmove(stdscr,9,0);