summaryrefslogtreecommitdiffstats
path: root/src/ntfs_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-03-06 19:38:48 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-03-06 19:38:48 +0100
commit22d825524dfd64368c55183b0dcad4b9048601d5 (patch)
treea0efe56d431fe34a14c5e8db701d4e07ecd9497a /src/ntfs_dir.c
parentc01909eefa4b438b3947bdea74d45a7a1b4ce2e0 (diff)
code cleanup, fix signed/unsigned warnings
Diffstat (limited to 'src/ntfs_dir.c')
-rw-r--r--src/ntfs_dir.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ntfs_dir.c b/src/ntfs_dir.c
index e13b7d4..0a139e5 100644
--- a/src/ntfs_dir.c
+++ b/src/ntfs_dir.c
@@ -179,7 +179,7 @@ static int ntfs_td_list_entry( struct ntfs_dir_struct *ls, const ntfschar *name
{
char *filename = NULL;
int result = 0;
- filename = calloc (1, MAX_PATH);
+ filename = (char *)calloc (1, MAX_PATH);
if (!filename)
{
log_critical("ntfs_td_list_entry calloc failed\n");
@@ -319,6 +319,8 @@ static file_data_t *ntfs_dir(disk_t *disk_car, const partition_t *partition, dir
return ls->dir_list;
}
+enum { bufsize = 4096 };
+
static int ntfs_copy(disk_t *disk_car, const partition_t *partition, dir_data_t *dir_data, const file_data_t *file)
{
const unsigned long int first_inode=file->stat.st_ino;
@@ -330,7 +332,6 @@ static int ntfs_copy(disk_t *disk_car, const partition_t *partition, dir_data_t
return -1;
}
{
- const int bufsize = 4096;
char *buffer;
char *new_file;
ntfs_attr *attr;