summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-04-07 09:03:21 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2008-04-07 09:03:21 +0200
commita4a280354dc516db44d106ece40e73bb0c49aadf (patch)
treea947a44450faabe2563c9dcfc16b379c85541fec /src
parent5bc721de8ee62310fdca321e4462192138afd86a (diff)
code cleanup: rename aff_buffer() fixup
Diffstat (limited to 'src')
-rw-r--r--src/adv.c8
-rw-r--r--src/chgtype.c2
-rw-r--r--src/dirpart.c4
-rw-r--r--src/ext2p.c2
-rw-r--r--src/fat_adv.c2
-rw-r--r--src/godmode.c2
-rw-r--r--src/intrface.c6
-rw-r--r--src/ntfsp.c2
-rw-r--r--src/partgpt.c2
-rw-r--r--src/parti386.c2
-rw-r--r--src/partmac.c2
-rw-r--r--src/partnone.c2
-rw-r--r--src/partsun.c2
-rw-r--r--src/partxbox.c2
-rw-r--r--src/photorec.c2
-rw-r--r--src/phrecn.c2
-rw-r--r--src/testdisk.c2
17 files changed, 23 insertions, 23 deletions
diff --git a/src/adv.c b/src/adv.c
index 1f86746..4c30ca0 100644
--- a/src/adv.c
+++ b/src/adv.c
@@ -513,7 +513,7 @@ int fat1x_boot_sector(disk_t *disk_car, partition_t *partition, const int verbos
{
unsigned int menu=0;
int command;
- screen_buffer_to_log();
+ screen_buffer_reset();
if(rescan==1)
{
#ifdef HAVE_NCURSES
@@ -674,7 +674,7 @@ int fat32_boot_sector(disk_t *disk_car, partition_t *partition, const int verbos
{
unsigned int menu=0;
int command;
- screen_buffer_to_log();
+ screen_buffer_reset();
if(rescan==1)
{
int opt_over=0;
@@ -942,7 +942,7 @@ int ntfs_boot_sector(disk_t *disk_car, partition_t *partition, const int verbose
{
unsigned int menu=0;
int command;
- screen_buffer_to_log();
+ screen_buffer_reset();
if(rescan==1)
{
int identical_sectors=0;
@@ -1188,7 +1188,7 @@ int HFS_HFSP_boot_sector(disk_t *disk_car, partition_t *partition, const int ver
{
unsigned int menu=0;
int command;
- screen_buffer_to_log();
+ screen_buffer_reset();
if(rescan==1)
{
int opt_over=0;
diff --git a/src/chgtype.c b/src/chgtype.c
index 8123124..c5e5bc6 100644
--- a/src/chgtype.c
+++ b/src/chgtype.c
@@ -91,7 +91,7 @@ static void change_part_type_ncurses(const disk_t *disk_car,partition_t *partiti
free(new_partition);
/* Display the list of partition type in 3 columns */
- screen_buffer_to_log();
+ screen_buffer_reset();
screen_buffer_add("List of partition type\n");
for (i = 2; i >= 0; i--)
last[2 - i] = done += (size + i - done) / (i + 1);
diff --git a/src/dirpart.c b/src/dirpart.c
index aae3514..3bdc14b 100644
--- a/src/dirpart.c
+++ b/src/dirpart.c
@@ -110,7 +110,7 @@ int dir_partition(disk_t *disk_car, const partition_t *partition, const int verb
switch(res)
{
case -2:
- screen_buffer_to_log();
+ screen_buffer_reset();
#ifdef HAVE_NCURSES
aff_copy(window);
wmove(window,4,0);
@@ -127,7 +127,7 @@ int dir_partition(disk_t *disk_car, const partition_t *partition, const int verb
}
break;
case -1:
- screen_buffer_to_log();
+ screen_buffer_reset();
#ifdef HAVE_NCURSES
aff_copy(window);
wmove(window,4,0);
diff --git a/src/ext2p.c b/src/ext2p.c
index 4046ff8..f901281 100644
--- a/src/ext2p.c
+++ b/src/ext2p.c
@@ -58,7 +58,7 @@ unsigned int ext2_remove_used_space(disk_t *disk_car,const partition_t *partitio
{
case -2:
case -1:
- screen_buffer_to_log();
+ screen_buffer_reset();
{
#ifdef HAVE_NCURSES
WINDOW *window;
diff --git a/src/fat_adv.c b/src/fat_adv.c
index cd06579..7332e1f 100644
--- a/src/fat_adv.c
+++ b/src/fat_adv.c
@@ -1774,7 +1774,7 @@ static upart_type_t select_fat_info(const info_offset_t *info_offset, const unsi
{ 'Q', "Proceed","Set FAT table location"},
{ 0, NULL, NULL }
};
- screen_buffer_to_log();
+ screen_buffer_reset();
screen_buffer_add("Potential FAT location\n");
screen_buffer_add("FAT - sector - score\n");
for(i=0;i<nbr_offset;i++)
diff --git a/src/godmode.c b/src/godmode.c
index ed6cb21..30c2211 100644
--- a/src/godmode.c
+++ b/src/godmode.c
@@ -407,7 +407,7 @@ static list_part_t *search_part(disk_t *disk_car, const list_part_t *list_part_o
wattroff(stdscr, A_REVERSE);
}
#endif
- screen_buffer_to_log();
+ screen_buffer_reset();
log_info("\nsearch_part()\n");
log_info("%s\n",disk_car->description(disk_car));
if(disk_car->arch==&arch_gpt)
diff --git a/src/intrface.c b/src/intrface.c
index 211f611..e10a701 100644
--- a/src/intrface.c
+++ b/src/intrface.c
@@ -707,7 +707,7 @@ static list_part_t *interface_analyse_ncurses(disk_t *disk_car, const int verbos
{ 'B', "Backup","Save current partition list to backup.log file and proceed"},
{ 0, NULL, NULL }
};
- screen_buffer_to_log();
+ screen_buffer_reset();
/* ncurses interface */
#ifdef HAVE_NCURSES
aff_copy(stdscr);
@@ -782,7 +782,7 @@ int interface_write(disk_t *disk_car,list_part_t *list_part,const int can_search
};
int command;
log_info("\ninterface_write()\n");
- screen_buffer_to_log();
+ screen_buffer_reset();
#ifdef HAVE_NCURSES
aff_copy(stdscr);
wmove(stdscr,4,0);
@@ -1494,7 +1494,7 @@ int interface_superblock(disk_t *disk_car,list_part_t *list_part, char**current_
{ 'Q',"Quit","Return to Advanced menu"},
{ 0, NULL, NULL }
};
- screen_buffer_to_log();
+ screen_buffer_reset();
#ifdef HAVE_NCURSES
aff_copy(stdscr);
wmove(stdscr,4,0);
diff --git a/src/ntfsp.c b/src/ntfsp.c
index 7652ff1..ac8c119 100644
--- a/src/ntfsp.c
+++ b/src/ntfsp.c
@@ -60,7 +60,7 @@ unsigned int ntfs_remove_used_space(disk_t *disk_car,const partition_t *partitio
{
case -2:
case -1:
- screen_buffer_to_log();
+ screen_buffer_reset();
{
#ifdef HAVE_NCURSES
WINDOW *window;
diff --git a/src/partgpt.c b/src/partgpt.c
index c94ac13..f3b0343 100644
--- a/src/partgpt.c
+++ b/src/partgpt.c
@@ -171,7 +171,7 @@ list_part_t *read_part_gpt(disk_t *disk_car, const int verbose, const int savehe
uint64_t gpt_entries_offset;
gpt=(struct gpt_hdr*)MALLOC(disk_car->sector_size);
- screen_buffer_to_log();
+ screen_buffer_reset();
if(disk_car->read(disk_car, disk_car->sector_size, gpt, disk_car->sector_size)!=0)
{
free(gpt);
diff --git a/src/parti386.c b/src/parti386.c
index f7f96ac..04e5c7d 100644
--- a/src/parti386.c
+++ b/src/parti386.c
@@ -348,7 +348,7 @@ static list_part_t *read_part_i386(disk_t *disk_car, const int verbose, const in
CHS_t geometry;
list_part_t *new_list_part=NULL;
unsigned char *buffer=MALLOC(disk_car->sector_size);
- screen_buffer_to_log();
+ screen_buffer_reset();
if(disk_car->read(disk_car,disk_car->sector_size, buffer, (uint64_t)0))
{
screen_buffer_add( msg_PART_RD_ERR);
diff --git a/src/partmac.c b/src/partmac.c
index cea0236..5dac0c9 100644
--- a/src/partmac.c
+++ b/src/partmac.c
@@ -120,7 +120,7 @@ list_part_t *read_part_mac(disk_t *disk_car, const int verbose, const int savehe
list_part_t *new_list_part=NULL;
unsigned int i;
unsigned int limit=1;
- screen_buffer_to_log();
+ screen_buffer_reset();
if(disk_car->read(disk_car,sizeof(buffer), &buffer, 0)!=0)
return NULL;
{
diff --git a/src/partnone.c b/src/partnone.c
index f695f53..741dbf7 100644
--- a/src/partnone.c
+++ b/src/partnone.c
@@ -196,7 +196,7 @@ list_part_t *read_part_none(disk_t *disk_car, const int verbose, const int saveh
partition->part_size=disk_car->disk_size;
partition->order=NO_ORDER;
partition->status=STATUS_PRIM;
- screen_buffer_to_log();
+ screen_buffer_reset();
disk_car->arch->check_part(disk_car,verbose,partition,saveheader);
aff_part_buffer(AFF_PART_ORDER|AFF_PART_STATUS,disk_car,partition);
list_part=insert_new_partition(NULL, partition, 0, &insert_error);
diff --git a/src/partsun.c b/src/partsun.c
index ff93bb8..3194fd4 100644
--- a/src/partsun.c
+++ b/src/partsun.c
@@ -143,7 +143,7 @@ list_part_t *read_part_sun(disk_t *disk_car, const int verbose, const int savehe
sun_partition *sunlabel;
list_part_t *new_list_part=NULL;
unsigned char *buffer=MALLOC(disk_car->sector_size);
- screen_buffer_to_log();
+ screen_buffer_reset();
sunlabel=(sun_partition*)buffer;
if(disk_car->read(disk_car,DEFAULT_SECTOR_SIZE, buffer, (uint64_t)0))
{
diff --git a/src/partxbox.c b/src/partxbox.c
index f89b9c0..93c35b2 100644
--- a/src/partxbox.c
+++ b/src/partxbox.c
@@ -97,7 +97,7 @@ list_part_t *read_part_xbox(disk_t *disk_car, const int verbose, const int saveh
{
unsigned char buffer[0x800];
list_part_t *new_list_part=NULL;
- screen_buffer_to_log();
+ screen_buffer_reset();
if(disk_car->read(disk_car,sizeof(buffer), &buffer, 0)!=0)
return new_list_part;
{
diff --git a/src/photorec.c b/src/photorec.c
index 16c6375..727b332 100644
--- a/src/photorec.c
+++ b/src/photorec.c
@@ -990,7 +990,7 @@ int main( int argc, char **argv )
"If you have problems with PhotoRec or bug reports, please contact me.\n");
return 0;
}
- screen_buffer_to_log();
+ screen_buffer_reset();
#ifdef HAVE_SETLOCALE
if(run_setlocale>0)
{
diff --git a/src/phrecn.c b/src/phrecn.c
index ac34609..3bf6e1a 100644
--- a/src/phrecn.c
+++ b/src/phrecn.c
@@ -1187,7 +1187,7 @@ static int photorec(disk_t *disk_car, partition_t *partition, const int verbose,
unsigned int pass;
unsigned int blocksize_is_known=0;
photorec_status_t status;
- screen_buffer_to_log();
+ screen_buffer_reset();
log_info("\nAnalyse\n");
log_partition(disk_car,partition);
if(blocksize==0 || td_list_empty(&list_search_space->list))
diff --git a/src/testdisk.c b/src/testdisk.c
index 059ffe2..651e005 100644
--- a/src/testdisk.c
+++ b/src/testdisk.c
@@ -227,7 +227,7 @@ int main( int argc, char **argv )
"If you have problems with TestDisk or bug reports, please contact me.\n");
return 0;
}
- screen_buffer_to_log();
+ screen_buffer_reset();
if(do_list!=0)
{
printf("Please wait...\n");