]> git.ipfire.org Git - thirdparty/git.git/commit - archive-zip.c
archive-zip.c: switch to reentrant localtime_r
authorDoan Tran Cong Danh <congdanhqx@gmail.com>
Thu, 28 Nov 2019 12:25:04 +0000 (19:25 +0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 30 Nov 2019 21:50:51 +0000 (13:50 -0800)
commitb5ab03bcb617897f9edce3d24cbc26f5e21b8f59
tree0c8cf989f0528fa8882e60565be69ab068236260
parentccd469450aaf62e6d0ce41a9738823d19d749a78
archive-zip.c: switch to reentrant localtime_r

Originally, git was intended to be single-thread executable.
`localtime(3)' can be used in such codebase for cleaner code.

Overtime, we're employing multithread in our code base.

Let's phase out `gmtime(3)' in favour of `localtime_r(3)'.

Signed-off-by: Doan Tran Cong Danh <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
archive-zip.c