Fixed some compilation warnings

This commit is contained in:
Celine Mercier
2017-08-20 17:25:58 +02:00
parent 9744a48a67
commit 93cff94e7f

View File

@ -240,7 +240,6 @@ OBIDMS_p obi_create_dms(const char* dms_path)
char* directory_name; char* directory_name;
DIR* dms_dir; DIR* dms_dir;
int dms_file_descriptor; int dms_file_descriptor;
size_t i, j;
// Build and check the directory name // Build and check the directory name
directory_name = build_directory_name(dms_path); directory_name = build_directory_name(dms_path);
@ -318,7 +317,7 @@ OBIDMS_p obi_create_dms(const char* dms_path)
*/ */
// Create the informations file // 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 NULL;
return obi_open_dms(dms_path); return obi_open_dms(dms_path);
@ -333,7 +332,6 @@ OBIDMS_p obi_open_dms(const char* dms_path)
int infos_file_descriptor; int infos_file_descriptor;
bool little_endian_dms; bool little_endian_dms;
bool little_endian_platform; bool little_endian_platform;
size_t i, j;
dms = NULL; dms = NULL;
@ -356,7 +354,7 @@ OBIDMS_p obi_open_dms(const char* dms_path)
i++; 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 // Build and check the directory name including the relative path
complete_dms_path = build_directory_name(dms_path); complete_dms_path = build_directory_name(dms_path);