summaryrefslogtreecommitdiffstats
path: root/src/rfs_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-06-23 19:28:58 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2008-06-23 19:28:58 +0200
commitb849a82750086bdddd127c7d43dd0a7381b3c28e (patch)
treeb7d0fd90e7e93e34455f0c582b2193803bbce4e1 /src/rfs_dir.c
parent50a0862d48da7f0260524b17c3b33281a1b5dcc7 (diff)
Make the code less C++ hostile
Diffstat (limited to 'src/rfs_dir.c')
-rw-r--r--src/rfs_dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rfs_dir.c b/src/rfs_dir.c
index e4b3c01..e2f2594 100644
--- a/src/rfs_dir.c
+++ b/src/rfs_dir.c
@@ -433,7 +433,7 @@ static file_data_t *reiser_dir(disk_t *disk_car, const partition_t *partition, d
strcat(name,entry.de_name);
if((entity=reiserfs_object_create(ls->current_fs,name,1)))
{
- file_data_t *new_file=MALLOC(sizeof(*new_file));
+ file_data_t *new_file=(file_data_t *)MALLOC(sizeof(*new_file));
thislen=(MAX_NAME_LEN(DEFAULT_BLOCK_SIZE)<DIR_NAME_LEN?MAX_NAME_LEN(DEFAULT_BLOCK_SIZE):DIR_NAME_LEN);
memcpy(new_file->name,entry.de_name,thislen);
new_file->name[thislen-1]='\0';
@@ -470,7 +470,7 @@ int dir_partition_reiser_init(disk_t *disk_car, const partition_t *partition, di
dal_t *dal;
reiserfs_fs_t *fs;
my_data_t *my_data;
- my_data=MALLOC(sizeof(*my_data));
+ my_data=(my_data_t *)MALLOC(sizeof(*my_data));
my_data->partition=partition;
my_data->disk_car=disk_car;
my_data->offset=0;