]> git.ipfire.org Git - thirdparty/ipset.git/commit
ipset: fix print format warning
authorNeutron Soutmun <neo.neutron@gmail.com>
Mon, 18 Jan 2021 04:58:30 +0000 (11:58 +0700)
committerJozsef Kadlecsik <kadlec@netfilter.org>
Tue, 19 Jan 2021 08:00:10 +0000 (09:00 +0100)
commit423a309ca8df5747e41a28ddce33d61fe64a2844
treeb1454030801ab7fdac7479e1390fc04bff558251
parentda6242e1758381135b15c4c4e9f170340f50e128
ipset: fix print format warning

* Use PRIx64 for portablility over various architectures.
* The format string for the 64bit number printing is incorrect,
  the `%` sign is missing.
* The force types casting over the uint32_t and uint64_t are unnecessary
  which warned by the compiler on different architecture.

Signed-off-by: Neutron Soutmun <neo.neutron@gmail.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
lib/print.c