summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/adv.c2
-rw-r--r--src/ext2_sbn.c27
-rw-r--r--src/ext2_sbn.h2
3 files changed, 14 insertions, 17 deletions
diff --git a/src/adv.c b/src/adv.c
index 923bee0..b294ddb 100644
--- a/src/adv.c
+++ b/src/adv.c
@@ -450,7 +450,7 @@ static void adv_menu_superblock_selected(disk_t *disk, partition_t *partition, c
{
if(is_linux(partition))
{
- list_part_t *list_sb=search_superblock(disk,partition,verbose,dump_ind,1);
+ list_part_t *list_sb=search_superblock(disk,partition,verbose,dump_ind);
interface_superblock(disk, list_sb, current_cmd);
part_free_list(list_sb);
}
diff --git a/src/ext2_sbn.c b/src/ext2_sbn.c
index ac276b7..8e3f650 100644
--- a/src/ext2_sbn.c
+++ b/src/ext2_sbn.c
@@ -75,7 +75,7 @@ static uint64_t next_sb(const uint64_t hd_offset_old)
return hd_offset;
}
-list_part_t *search_superblock(disk_t *disk_car, partition_t *partition, const int verbose, const int dump_ind, const int interface)
+list_part_t *search_superblock(disk_t *disk_car, partition_t *partition, const int verbose, const int dump_ind)
{
unsigned char *buffer=(unsigned char *)MALLOC(2*0x200);
uint64_t hd_offset;
@@ -89,19 +89,16 @@ list_part_t *search_superblock(disk_t *disk_car, partition_t *partition, const i
partition_t *new_partition=partition_new(disk_car->arch);
log_trace("search_superblock\n");
#ifdef HAVE_NCURSES
- if(interface>0)
- {
- aff_copy(stdscr);
- wmove(stdscr,4,0);
- wprintw(stdscr,"%s",disk_car->description(disk_car));
- mvwaddstr(stdscr,5,0,msg_PART_HEADER_LONG);
- wmove(stdscr,6,0);
- aff_part(stdscr,AFF_PART_ORDER|AFF_PART_STATUS,disk_car,partition);
- wmove(stdscr,22,0);
- wattrset(stdscr, A_REVERSE);
- waddstr(stdscr," Stop ");
- wattroff(stdscr, A_REVERSE);
- }
+ aff_copy(stdscr);
+ wmove(stdscr,4,0);
+ wprintw(stdscr,"%s",disk_car->description(disk_car));
+ mvwaddstr(stdscr,5,0,msg_PART_HEADER_LONG);
+ wmove(stdscr,6,0);
+ aff_part(stdscr,AFF_PART_ORDER|AFF_PART_STATUS,disk_car,partition);
+ wmove(stdscr,22,0);
+ wattrset(stdscr, A_REVERSE);
+ waddstr(stdscr," Stop ");
+ wattroff(stdscr, A_REVERSE);
#endif
for(hd_offset=0;
hd_offset<partition->part_size && nbr_sb<10 && ind_stop==0;
@@ -109,7 +106,7 @@ list_part_t *search_superblock(disk_t *disk_car, partition_t *partition, const i
{
#ifdef HAVE_NCURSES
const unsigned long int percent=hd_offset*100/partition->part_size;
- if(interface>0 && percent!=old_percent)
+ if(percent!=old_percent)
{
wmove(stdscr,9,0);
wclrtoeol(stdscr);
diff --git a/src/ext2_sbn.h b/src/ext2_sbn.h
index 07deea2..a90da20 100644
--- a/src/ext2_sbn.h
+++ b/src/ext2_sbn.h
@@ -23,7 +23,7 @@
extern "C" {
#endif
-list_part_t *search_superblock(disk_t *disk_car, partition_t *partition, const int verbose, const int dump_ind, const int interface);
+list_part_t *search_superblock(disk_t *disk_car, partition_t *partition, const int verbose, const int dump_ind);
#ifdef __cplusplus
} /* closing brace for extern "C" */