[PATCH] debuginfod/debuginfod-client.c: correct string format on 32bit arches with 64bit time_t
Frank Ch. Eigler
fche@redhat.com
Thu Dec 9 00:56:59 GMT 2021
Hi -
> [...]
> We seem to not expect these intervals to be much bigger than a week,
> so an int should always be big enough (even when stretched up to a
> whole year).
Yes, ints are fine for these humane-number-of-seconds kinds of values
in the cache configuration. There's no need for maximum length
integers or even longs for purposes of storage/parse. In the later
interval arithmetic related to time_t values, we can widen them to
(time_t) then and there.
- FChE
More information about the Elfutils-devel
mailing list