removed TODO from why2_write_log's write

This commit is contained in:
Václav Šmejkal 2023-02-04 18:23:10 +01:00
parent 792877202c
commit aaeec50687
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -154,7 +154,10 @@ void why2_write_log(int loggerFile, char *logMessage)
sprintf(buffer, WHY2_WRITE_FORMATTING, tm.tm_hour, tm.tm_min, tm.tm_sec, message); //LOAD MESSAGE sprintf(buffer, WHY2_WRITE_FORMATTING, tm.tm_hour, tm.tm_min, tm.tm_sec, message); //LOAD MESSAGE
(void) (write(loggerFile, buffer, strlen(buffer)) + 1); //TODO: Try to create some function for processing exit value if (write(loggerFile, buffer, strlen(buffer)) != (ssize_t) strlen(buffer))
{
if (!why2_get_flags().no_output) fprintf(stderr, "Writing failed!");
}
//DEALLOCATION //DEALLOCATION
why2_free(buffer); why2_free(buffer);