git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: a2da77c) | patch
Fix compiler warning in fe-trace.c for MSVC
Tue, 6 Apr 2021 06:33:40 +0000 (18:33 +1200)
Tue, 6 Apr 2021 06:33:40 +0000 (18:33 +1200)
commit 9bc9b4609a246ded5caf3f3d4c0013a002ba2323
Fix compiler warning in fe-trace.c for MSVC

It seems that in MSVC timeval's tv_sec field is of type long.
localtime() takes a time_t pointer. Since long is 32-bit even on 64-bit
builds in MSVC, passing a long pointer instead of the correct time_t
pointer generated a compiler warning. Fix that.

Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/CAApHDvoRG25X_=ZCGSPb4KN_j2iu=G2uXsRSg8NBZeuhkOSETg@mail.gmail.com
src/interfaces/libpq/fe-trace.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /