]> 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)
committerDenis Ovsienko <[email protected]>
Sun, 10 Mar 2024 18:03:17 +0000 (18:03 +0000)
commit8db1e99788bcc493d5d2857e94844e1661caabd1
tree1ef8d865bd7ad8b3ecf0d5187b74458e98f0a13f
parent53ae09996205647b0adfbe00bf7421ab0e617c83
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.
print-arista.c