fln / addrwatch

A tool similar to arpwatch for IPv4/IPv6 and ethernet address pairing monitoring.
GNU General Public License v3.0
184 stars 30 forks source link

Use C99 format macro constants for timestamp and vlan_tag #28

Open jefferyto opened 3 years ago

jefferyto commented 3 years ago

Since timestamp and vlan_tag in the shm_log_entry struct are C99 fixed width integer types (uint64_t and uint16_t), the cross-platform way to print these values is to use the corresponding format macro constants, PRIu64 and PRIu16.

This also adjusts the places where the time_t timestamp value is printed, casting it to uint64_t, for consistency.

Fixes https://github.com/fln/addrwatch/issues/25 Fixes https://github.com/fln/addrwatch/issues/26