]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix -Wformat errors in pfctl on 32-bit architectures
authorDimitry Andric <dim@FreeBSD.org>
Sun, 29 Aug 2021 15:31:28 +0000 (17:31 +0200)
committerKristof Provost <kp@FreeBSD.org>
Mon, 6 Sep 2021 13:43:03 +0000 (15:43 +0200)
commit2ea6ae7cc8146d2c05e266f80f00d35e9dc6dc24
tree507f6e0ec710c978a793446469317a9746afb43b
parentef082ce0edcdf7a49c592f9884da69cc19ab856d
Fix -Wformat errors in pfctl on 32-bit architectures

Use PRIu64 to printf(3) uint64_t quantities, otherwise this will result
in "error: format specifies type 'unsigned long' but the argument has
type 'uint64_t' (aka 'unsigned long long') [-Werror,-Wformat]" on 32-bit
architectures.

Fixes: 80078d9d38fd
MFC after: 1 week

(cherry picked from commit 5b8f07b12f8477f1679013d6b3abdab8d33c7243)
sbin/pfctl/pfctl_parser.c