There are few places where time is used in x11iraf; this patch makes sure that time_t is used here instead of long. This makes x11iraf compilable with newer Linux distributions (which made the time_t transition to ensure working after 2038).
Also, we always use time(NULL);, not time(0); (argument is a pointer, not a number) or time((long *)NULL); (NULL pointers are valid for all pointer types without cast).
There are few places where time is used in x11iraf; this patch makes sure that
time_t
is used here instead oflong
. This makes x11iraf compilable with newer Linux distributions (which made thetime_t
transition to ensure working after 2038).Also, we always use
time(NULL);
, nottime(0);
(argument is a pointer, not a number) ortime((long *)NULL);
(NULL
pointers are valid for all pointer types without cast).