summaryrefslogtreecommitdiffstats
path: root/src/testdisk.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2007-11-02 17:14:52 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2007-11-02 17:14:52 +0100
commit249bad4bb750551855f3f1931110d3f493c6f779 (patch)
tree2062db2dc1854e224f64a0a1f7870501ceec40a0 /src/testdisk.c
parent6d5421fd222ff503c4645f5e96c1bd895f711468 (diff)
- Use wprintw ncurses function instead of a custom one
- src/file_mov.c: Fix a compilation error if DEBUG_MOV is defined
Diffstat (limited to 'src/testdisk.c')
-rw-r--r--src/testdisk.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testdisk.c b/src/testdisk.c
index 0a15e6e..9460bad 100644
--- a/src/testdisk.c
+++ b/src/testdisk.c
@@ -80,11 +80,11 @@ void aff_copy(WINDOW *window)
wclear(window);
keypad(window, TRUE); /* Need it to get arrow key */
wmove(window,0,0);
- wdoprintf(window, "TestDisk %s, Data Recovery Utility, %s",VERSION,TESTDISKDATE);
+ wprintw(window, "TestDisk %s, Data Recovery Utility, %s",VERSION,TESTDISKDATE);
wmove(window,1,0);
- wdoprintf(window,"Christophe GRENIER <grenier@cgsecurity.org>");
+ wprintw(window,"Christophe GRENIER <grenier@cgsecurity.org>");
wmove(window,2,0);
- wdoprintf(window,"http://www.cgsecurity.org");
+ wprintw(window,"http://www.cgsecurity.org");
}
#endif
@@ -291,7 +291,7 @@ int main( int argc, char **argv )
#ifdef HAVE_NCURSES
aff_copy(stdscr);
wmove(stdscr,5,0);
- wdoprintf(stdscr, "Please wait...\n");
+ wprintw(stdscr, "Please wait...\n");
#endif
/* Scan for available device only if no device or image has been supplied in parameter */
if(list_disk==NULL)
@@ -303,7 +303,7 @@ int main( int argc, char **argv )
wmove(stdscr,6,0);
for(element_disk=list_disk;element_disk!=NULL;element_disk=element_disk->next)
{
- wdoprintf(stdscr,"%s\n",element_disk->disk->description(element_disk->disk));
+ wprintw(stdscr,"%s\n",element_disk->disk->description(element_disk->disk));
}
wrefresh(stdscr);
#endif