Closed Schievel1 closed 1 year ago
I think what I did there in #10 was wrong, because time() in mt.c (from time.h) [1] expects time_t. Since mt.c imports globals.h it will import the wrong dtime_t from there, which results in a wrong pointer conversion.
time()
mt.c
time.h
time_t
globals.h
dtime_t
[1] https://github.com/folkertvanheusden/multitail/blob/2afd0230499bc98b569d70800d46a213d4e1501c/mt.c#L2773
Signed-off-by: Pascal Jäger pascal.jaeger@leimstift.de
I think what I did there in #10 was wrong, because
time()
inmt.c
(fromtime.h
) [1] expectstime_t
. Sincemt.c
importsglobals.h
it will import the wrongdtime_t
from there, which results in a wrong pointer conversion.[1] https://github.com/folkertvanheusden/multitail/blob/2afd0230499bc98b569d70800d46a213d4e1501c/mt.c#L2773
Signed-off-by: Pascal Jäger pascal.jaeger@leimstift.de