]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
aft.c: Prefer localtime() over localtime_r().
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 5 Sep 2015 19:49:16 +0000 (21:49 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 13 Dec 2015 10:30:27 +0000 (11:30 +0100)
While localtime(3) is required to behave as though tzset(3) was
called, localtime_r(3) does not have this requirement, and portable
code should thus call tzset(3) before localtime_r(3). This is not
the case for get_local_time() of aft.c.

As we are single-threaded here, we don't need the thread-safe version,
so it is easiest to switch to localtime(3).


No differences found