]> The Tcpdump Group git mirrors - tcpdump/commit
Rearrange seconds and nanoseconds in print-arista.c.
authorDenis Ovsienko <[email protected]>
Sun, 10 Mar 2024 16:24:40 +0000 (16:24 +0000)
committerFrancois-Xavier Le Bail <[email protected]>
Mon, 30 Sep 2024 13:22:37 +0000 (15:22 +0200)
commit3d6e426b5aaf04f4e3ef8074ea38ef7efa87d027
tree9a779a3cb3d1daf1b38197d02e7f4a5fa1cd78ba
parentcb1aa661fd2cc440684f927b4de3ddf291e2f5e2
Rearrange seconds and nanoseconds in print-arista.c.

./print-arista.c:146:36: warning: implicit conversion loses integer
  precision: 'uint64_t' (aka 'unsigned long') to 'uint32_t' (aka
  'unsigned int') [-Wshorten-64-to-32]

When the nanoseconds value is not less that one second, instead of
silently carrying the excess over to the seconds value flag the
timestamp as bogus, this way the decoder better shows what is on the
wire and the seconds value always fits into 32 bits.

(cherry picked from commit 8db1e99788bcc493d5d2857e94844e1661caabd1)
print-arista.c