]> git.tuebingen.mpg.de Git - paraslash.git/commit
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)
commit9cc91f2d8d746e77947eeb2fd7af711a43c3a56a
treed7343633f41f46880a5f53dee59a5ce3d6199f02
parent3c978d34b0e9e435c097f3cd6fbabf031087a3b6
aft.c: Prefer localtime() over localtime_r().

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).
aft.c