Uncommented an error message that doesn't need to be commented anymore
This commit is contained in:
@ -773,7 +773,7 @@ OBIDMS_column_p obi_open_column(OBIDMS_p dms,
|
|||||||
column_directory = obi_open_column_directory(dms, column_name);
|
column_directory = obi_open_column_directory(dms, column_name);
|
||||||
if (column_directory == NULL)
|
if (column_directory == NULL)
|
||||||
{
|
{
|
||||||
//obidebug(1, "\nError opening a column directory structure"); // TODO
|
obidebug(1, "\nError opening a column directory structure");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1438,29 +1438,3 @@ int obi_column_prepare_to_get_value(OBIDMS_column_p column, index_t line_nb)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
char* obi_column_format_date(time_t date) // TODO put in utils.c
|
|
||||||
{
|
|
||||||
char* formatted_time;
|
|
||||||
struct tm* tmp;
|
|
||||||
|
|
||||||
formatted_time = (char*) malloc(FORMATTED_TIME_LENGTH*sizeof(char));
|
|
||||||
|
|
||||||
tmp = localtime(&date);
|
|
||||||
if (tmp == NULL)
|
|
||||||
{
|
|
||||||
obi_set_errno(OBICOL_UNKNOWN_ERROR);
|
|
||||||
obidebug(1, "\nError formatting a date");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (strftime(formatted_time, FORMATTED_TIME_LENGTH, "%c", tmp) == 0)
|
|
||||||
{
|
|
||||||
obi_set_errno(OBICOL_UNKNOWN_ERROR);
|
|
||||||
obidebug(1, "\nError formatting a date");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return formatted_time;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user