summaryrefslogtreecommitdiffstats
path: root/src/ext2p.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-01-14 22:13:47 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-01-14 22:13:47 +0100
commit1650fe5b8b6cea638c280df13605aea816718a00 (patch)
treefed11bd9361236aba47157d859607c109db05814 /src/ext2p.c
parent56e1c29b2c0614b0b3230946d72e1eaf37618bcc (diff)
Split ncurses text interface from functions
Diffstat (limited to 'src/ext2p.c')
-rw-r--r--src/ext2p.c25
1 files changed, 3 insertions, 22 deletions
diff --git a/src/ext2p.c b/src/ext2p.c
index 9a67598..80fe951 100644
--- a/src/ext2p.c
+++ b/src/ext2p.c
@@ -34,7 +34,6 @@
#include "list.h"
#include "filegen.h"
#include "intrf.h"
-#include "intrfn.h"
#include "dir.h"
#ifdef HAVE_EXT2FS_EXT2_FS_H
#include "ext2fs/ext2_fs.h"
@@ -46,6 +45,7 @@
#include "ext2_inc.h"
#include "ext2_dir.h"
#include "log.h"
+#include "log_part.h"
#ifdef HAVE_LIBEXT2FS
unsigned int ext2_remove_used_space(disk_t *disk, const partition_t *partition, alloc_data_t *list_search_space)
@@ -55,27 +55,8 @@ unsigned int ext2_remove_used_space(disk_t *disk, const partition_t *partition,
{
case -2:
case -1:
- screen_buffer_reset();
- {
-#ifdef HAVE_NCURSES
- WINDOW *window;
- window=newwin(0,0,0,0); /* full screen */
- aff_copy(window);
- wmove(window,4,0);
- aff_part(window, AFF_PART_ORDER|AFF_PART_STATUS, disk, partition);
-#endif
- log_partition(disk, partition);
- screen_buffer_add("Can't open filesystem. Filesystem seems damaged.\n");
- screen_buffer_to_log();
-#ifdef HAVE_NCURSES
- screen_buffer_display(window,"",NULL);
- delwin(window);
- (void) clearok(stdscr, TRUE);
-#ifdef HAVE_TOUCHWIN
- touchwin(stdscr);
-#endif
-#endif
- }
+ log_partition(disk, partition);
+ log_error("Can't open filesystem. Filesystem seems damaged.\n");
return 0;
}
{