The endianness of an OBIDMS is now stored in an informations file that

is read when opening the OBIDMS.
This commit is contained in:
Celine Mercier
2015-11-16 14:37:51 +01:00
parent 6579566c6e
commit e8417b4f6f
5 changed files with 165 additions and 15 deletions

View File

@ -339,7 +339,7 @@ static obiversion_t create_version_file(OBIDMS_column_directory_p column_directo
return -1;
}
// Position offset to 0 to prepare for writing
// Position offset to 0 to prepare for writing // TODO Unnecessary?
if (lseek(version_file_descriptor, 0, SEEK_SET) != 0)
{
obi_set_errno(OBICOL_UNKNOWN_ERROR);
@ -358,7 +358,7 @@ static obiversion_t create_version_file(OBIDMS_column_directory_p column_directo
}
// Prepare for unlocking
if (lseek(version_file_descriptor, 0, SEEK_SET) != 0)
if (lseek(version_file_descriptor, 0, SEEK_SET) != 0) // TODO Unnecessary?
{
obi_set_errno(OBICOL_UNKNOWN_ERROR);
obidebug(1, "\nError preparing a version file for unlocking");