aboutsummaryrefslogtreecommitdiff
path: root/tests/mtd-tests
diff options
context:
space:
mode:
authorBen Hutchings <ben.hutchings@mind.be>2024-04-12 22:55:05 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2024-04-13 16:26:37 +0200
commitcc7af09ae09ae20565e61f7d33b5ec0329797647 (patch)
treef5451acb34dbde0bcafd6a2993439c5a4f49c262 /tests/mtd-tests
parent31e990c56aba7584cde310685d663bb122f16003 (diff)
mtd-utils: fectest: Fix time formatting with _TIME_BITS=64 on 32-bit system
fectest.c formats a struct timeval with the assumption that time_t and suseconds_t are aliases for long, but some 32-bit systems now define them as long long in order to support timestamps beyond 2038. As this is an elapsed time and not a timestamp, both fields should be within the range of long, so cast them to long before formatting rather than moving to long long. Signed-off-by: Ben Hutchings <ben.hutchings@mind.be> Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com> Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/mtd-tests')
0 files changed, 0 insertions, 0 deletions