670 Commits

Author SHA1 Message Date
7a5e632f7a
added missing comment 2022-12-09 15:21:02 +01:00
f38e6e15f4
fixed 'ignoring return value' problem in symlink creation
see 215121f209f3e09a5ad3ce4fc5ed052d9d66708d
2022-12-09 15:13:59 +01:00
cd6600a83f
added latest log feature && simplified LOG_FORMATTING 2022-12-09 15:10:41 +01:00
215121f209
kind of fixed 'ignoring return value' problem
saying I bypassed compiler would sound weird, so yeah... 🤠
2022-12-09 14:09:15 +01:00
fd6aa19eba
added proper expression for comparing write & fread return values
still not complete tho
2022-12-07 17:30:47 +01:00
8df7a56095
fixed what I fucked up last commit 2022-12-06 18:30:49 +01:00
0cacbcf174
patched unused-result error
hopefully
2022-12-06 18:22:58 +01:00
ee886f0237
fixed possible segfault in writeLog
This would happen if initLogger returned INVALID_FILE and you still tried using writeLog
2022-12-06 18:14:34 +01:00
385f39b05d
preventing from [-Werror=unused-result] (3#) 2022-12-04 19:49:06 +01:00
d94a65e50d
preventing from [-Werror=unused-result] (2#) 2022-12-04 19:46:37 +01:00
cec421cbe5
preventing from [-Werror=unused-result] 2022-12-04 19:44:10 +01:00
67170b2635
made logger-test much better
it now reads content of log file
2022-12-04 19:24:06 +01:00
054c7647a1
fixed logFile memory leak 2022-12-04 19:19:41 +01:00
731b33e24e
implemented all logFile changes in logger-test 2022-12-04 19:18:39 +01:00
cfdcad1c9b
removed needed pointer deallocation 2022-12-04 19:18:04 +01:00
2401612ccf
updated utils.c 2022-12-04 19:16:33 +01:00
ea76a8b5e6
added logFile to deallocateLogger 2022-12-04 19:15:44 +01:00
e2c5791dc7
implemented logFile type in logger.c 2022-12-04 19:13:05 +01:00
1e7868ead1
made initLogger return logFile 2022-12-04 19:05:28 +01:00
ca80df8c11
created logFile typedef 2022-12-04 19:04:24 +01:00
5681a17a5e
added optimalisation to CFLAGS 2022-12-04 18:59:50 +01:00
dbe1ba2749
fixed possible deallocation problem
uninitialised
2022-12-04 18:59:27 +01:00
f71647e0ff
added license at top of every file
I mean, the files where it is possible
2022-12-04 18:55:13 +01:00
8d136b726f
implemented last commit; removed todo 2022-11-23 19:52:03 +01:00
80f8fc6967
created LOG_FORMATTING_START and LOG_FORMAT_START flags 2022-11-23 19:49:33 +01:00
488a59db56
fixed filePath allocation syze 2022-11-23 19:45:07 +01:00
5054284370
fixed log folder counting bug
gonna make this variable, don't worry
2022-11-23 19:44:35 +01:00
2d233ea54e
addded ".log" ad the end of LOG_FORMATTING flag
I forgot, again
2022-11-23 19:31:26 +01:00
77ae6e1cf6
added NULL character at the end of buffer in misc when reading versions.json 2022-11-22 19:40:49 +01:00
8c4b888a88
renamed logger-test's test variable to logFile 2022-11-22 18:57:53 +01:00
3c17674cdb
added comments to logger-test 2022-11-22 18:57:06 +01:00
28a38e5290
moved logger-test's directory to WRITE_DIR flag 2022-11-22 18:56:10 +01:00
2c379872d9
moved logger-test's write message to WRITE_MESSAGE flag 2022-11-22 18:55:34 +01:00
9fe1fbde66
added something intelligent to logger-test write message 2022-11-22 18:54:06 +01:00
48977c0fe1
added on byte to writeLog's buffer allocation
I mean... Valgrind told me to.
2022-11-22 18:50:41 +01:00
0f4492a611
added some *working* code into writeLog's body 2022-11-22 18:47:56 +01:00
6074e06e9f
added semicolon to WRITE_FORMATTING 2022-11-22 18:46:46 +01:00
7205089099
fixed invalid WRITE_FORMATTING format 2022-11-22 18:45:56 +01:00
0940ac28cb
created WRITE_FORMATTING flag
and guess what is it for :)
2022-11-22 18:44:02 +01:00
90935724fc
created WRITE_FORMAT flag 2022-11-22 18:36:31 +01:00
8ee309fe7c
implemented writeLog in logger-test 2022-11-22 18:32:44 +01:00
95d5c8201f
added missing header file include
I thought it write() was in fcnttl

whoops
2022-11-22 18:30:55 +01:00
e5a4c21f6a
added test code into writeLog 2022-11-22 18:29:00 +01:00
3a456bf63a
created writeLog function 2022-11-22 18:23:25 +01:00
4e345eeb99
added missing comment to initLogger 2022-11-22 18:21:20 +01:00
f2b059da13
implemented deallocateLogger in logger-test 2022-11-22 18:19:47 +01:00
453a8a1cca
added code to deallocateLogger's body
just close function lmao
2022-11-22 18:19:21 +01:00
7e65ac5550
created deallocateLogger function in why2-utils header 2022-11-22 18:15:13 +01:00
217c1fc99a
added logger-utils header into why2 header 2022-11-22 18:10:46 +01:00
2440464f6e
created utils header file
I mean logger utils yk
2022-11-22 18:09:49 +01:00