]> The Tcpdump Group git mirrors - tcpdump/commit
Update --version option to print 32/64-bit build and time_t size
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 13 Mar 2024 12:11:06 +0000 (13:11 +0100)
committerfxlb <[email protected]>
Fri, 15 Mar 2024 12:26:49 +0000 (12:26 +0000)
commit218a378a6fb336b226ed0100efc37f4214c96068
treec59d857d511d729ebcdffaa25878d599efd23092
parent12ab2165a61705a4fb587a46c9ddcd17c51f8254
Update --version option to print 32/64-bit build and time_t size

Use only sizeof() and not SIZEOF_VOID_P/SIZEOF_TIME_T because these
macros could have invalid values in some macOS fat builds (See commit
170cbc8c6d484387ec7ae19ef9f4bd14dd0845e7).

This method should be future proof.

With this change we know:
whether this is a 32-bit or 64-bit build;
whether the time_t size is 32-bit or 64-bit.

[skip ci]
tcpdump.c