Fix for C++ compilation
This commit is contained in:
parent
25b603a4cc
commit
49b4aab59a
3 changed files with 4 additions and 4 deletions
|
@ -121,7 +121,7 @@ int main(int argc, char **argv)
|
|||
printf("posix_memalign failed\n");
|
||||
return 1;
|
||||
}
|
||||
buffer=res;
|
||||
buffer=(char*)res;
|
||||
}
|
||||
if(1==2)
|
||||
{
|
||||
|
|
|
@ -249,7 +249,7 @@ static int fewf_nowrite(disk_t *disk_car,const unsigned int count, const void *n
|
|||
const char*td_ewf_version(void)
|
||||
{
|
||||
#ifdef LIBEWF_VERSION_STRING
|
||||
return LIBEWF_VERSION_STRING;
|
||||
return (const char*)LIBEWF_VERSION_STRING;
|
||||
#elif defined(LIBEWF_VERSION)
|
||||
return LIBEWF_VERSION;
|
||||
#else
|
||||
|
|
|
@ -202,11 +202,11 @@ static int list_dir_proc2(ext2_ino_t dir,
|
|||
int offset,
|
||||
int blocksize,
|
||||
char *buf,
|
||||
void *private)
|
||||
void *privateinfo)
|
||||
{
|
||||
struct ext2_inode inode;
|
||||
ext2_ino_t ino;
|
||||
struct ext2_dir_struct *ls = (struct ext2_dir_struct *) private;
|
||||
struct ext2_dir_struct *ls = (struct ext2_dir_struct *) privateinfo;
|
||||
file_data_t *new_file;
|
||||
if(entry==DIRENT_DELETED_FILE && (ls->dir_data->param & FLAG_LIST_DELETED)==0)
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue