summaryrefslogtreecommitdiffstats
path: root/src/dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-11-28 08:46:04 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2008-11-28 08:46:04 +0100
commit64e71b57632ab0dfa357e2091c05a68986b3adb0 (patch)
treedf21dc5bbb796843e02b3328cd219f26e218a228 /src/dir.c
parent547a352fb882a2f4c12f0595e50a5b3d1f5959fb (diff)
NTFS MFT repair: Warn if the file listing doesn't contain more than 2 directory entries '.' and '..'
Diffstat (limited to 'src/dir.c')
-rw-r--r--src/dir.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dir.c b/src/dir.c
index a1cb33f..f821d0d 100644
--- a/src/dir.c
+++ b/src/dir.c
@@ -550,15 +550,18 @@ static long int dir_aff_ncurses(disk_t *disk, const partition_t *partition, dir_
}
#endif
-void delete_list_file(file_data_t *file_list)
+unsigned int delete_list_file(file_data_t *file_list)
{
+ int nbr=0;
file_data_t *current_file=file_list;
while(current_file!=NULL)
{
file_data_t *next=current_file->next;
free(current_file);
current_file=next;
+ nbr++;
}
+ return nbr;
}
void delete_list_file_info(struct td_list_head *list)