implemented all logFile changes in logger-test

This commit is contained in:
Václav Šmejkal 2022-12-04 19:18:39 +01:00
parent cfdcad1c9b
commit 731b33e24e
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -23,13 +23,13 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
int main(void) int main(void)
{ {
//VARIABLES //VARIABLES
int logFile = initLogger(WRITE_DIR); //INITIALIZE LOGGER FILE logFile logger = initLogger(WRITE_DIR); //INITIALIZE LOGGER FILE
printf("%d\n", logFile); printf("%d\n", logger.file);
writeLog(logFile, WRITE_MESSAGE); //WRITE writeLog(logger.file, WRITE_MESSAGE); //WRITE
//DEALLOCATION //DEALLOCATION
deallocateLogger(logFile); deallocateLogger(logger);
return 0; return 0;
} }