diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-07-26 19:05:09 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-07-26 19:05:09 -0400 | 
| commit | 0b1321e2185a216a4135ad92973e440a1ba3f08e (patch) | |
| tree | c38cb30677793a3faa34537b7c4d69592734ef5c /vrrpd/vrrp_packet.c | |
| parent | ced26d3d49360dd9c0a1a275721f652ffcb9f34e (diff) | |
vrrpd: Make clang 11 happy
Recent changes to remove PRIu... in commit:
6cde4b45528e52819c803de92d10d4be3abddf29
causes clang 11 to be unhappy, with length of field warnings.
Modify the offending code to compile properly using that compiler.
I've tested against clang 11 and gcc 9.3
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'vrrpd/vrrp_packet.c')
| -rw-r--r-- | vrrpd/vrrp_packet.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/vrrpd/vrrp_packet.c b/vrrpd/vrrp_packet.c index 61fcc4e85d..3cb13bd71b 100644 --- a/vrrpd/vrrp_packet.c +++ b/vrrpd/vrrp_packet.c @@ -296,7 +296,7 @@ ssize_t vrrp_pkt_parse_datagram(int family, int version, struct msghdr *m,  			(*pkt)->hdr.chksum, chksum);  	/* Type check */ -	VRRP_PKT_VCHECK(((*pkt)->hdr.vertype & 0x0F) == 1, "Bad type %hhu", +	VRRP_PKT_VCHECK(((*pkt)->hdr.vertype & 0x0F) == 1, "Bad type %u",  			(*pkt)->hdr.vertype & 0x0f);  	/* Exact size check */  | 
