Fixed some compilation warnings
This commit is contained in:
@ -240,7 +240,6 @@ OBIDMS_p obi_create_dms(const char* dms_path)
|
||||
char* directory_name;
|
||||
DIR* dms_dir;
|
||||
int dms_file_descriptor;
|
||||
size_t i, j;
|
||||
|
||||
// Build and check the directory name
|
||||
directory_name = build_directory_name(dms_path);
|
||||
@ -318,7 +317,7 @@ OBIDMS_p obi_create_dms(const char* dms_path)
|
||||
*/
|
||||
|
||||
// Create the informations file
|
||||
if (create_dms_infos_file(dms_file_descriptor, basename(dms_path)) < 0)
|
||||
if (create_dms_infos_file(dms_file_descriptor, basename((char*)dms_path)) < 0)
|
||||
return NULL;
|
||||
|
||||
return obi_open_dms(dms_path);
|
||||
@ -333,7 +332,6 @@ OBIDMS_p obi_open_dms(const char* dms_path)
|
||||
int infos_file_descriptor;
|
||||
bool little_endian_dms;
|
||||
bool little_endian_platform;
|
||||
size_t i, j;
|
||||
|
||||
dms = NULL;
|
||||
|
||||
@ -356,7 +354,7 @@ OBIDMS_p obi_open_dms(const char* dms_path)
|
||||
i++;
|
||||
}
|
||||
*/
|
||||
strcpy(dms->dms_name, basename(dms_path));
|
||||
strcpy(dms->dms_name, basename((char*)dms_path));
|
||||
|
||||
// Build and check the directory name including the relative path
|
||||
complete_dms_path = build_directory_name(dms_path);
|
||||
|
Reference in New Issue
Block a user