preventing from [-Werror=unused-result] (2#)

This commit is contained in:
Václav Šmejkal 2022-12-04 19:46:37 +01:00
parent cec421cbe5
commit d94a65e50d
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -93,7 +93,7 @@ void writeLog(int loggerFile, char *logMessage)
sprintf(buffer, WRITE_FORMATTING, tm.tm_hour, tm.tm_min, tm.tm_sec, logMessage); //LOAD MESSAGE
write(loggerFile, buffer, strlen(buffer)); //WRITE (YAY)
if (write(loggerFile, buffer, strlen(buffer)) == 0) abort(); //WRITE (YAY) //TODO: Make it safe
//DEALLOCATION
free(buffer);