]> git.ipfire.org Git - thirdparty/git.git/commit
compat: remove gmtime
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Thu, 14 May 2020 19:18:54 +0000 (12:18 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 May 2020 20:52:27 +0000 (13:52 -0700)
commit84b0115f0dc9483dbc7f064b46afaddc4d94db92
tree7eb5a416646e93d86e5923a39036405c4941a70b
parent7397ca33730626f682845f8691b39c305535611e
compat: remove gmtime

ccd469450a (date.c: switch to reentrant {gm,local}time_r, 2019-11-28)
removes the only gmtime() call we had and moves to gmtime_r() which
doesn't have the same portability problems.

Remove the compat gmtime code since it is no longer needed, and confirm
by successfull running t4212 in FreeBSD 9.3 amd64 (the oldest I could
get a hold off).

Further work might be needed to ensure 32bit time_t systems (like FreeBSD
i386) will handle correctly the overflows tested in t4212, but that is
orthogonal to this change, and it doesn't change the current behaviour
as neither gmtime() or gmtime_r() will ever return NULL on those systems
because time_t is unsigned.

Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
compat/gmtime.c [deleted file]
config.mak.uname
git-compat-util.h