]> git.proxmox.com Git - mirror_iproute2.git/commit
ipmacsec: fix warning on 32bit platform
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 10 Dec 2018 21:47:58 +0000 (13:47 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 10 Dec 2018 21:47:58 +0000 (13:47 -0800)
commit79940533c0e6f2686caf0d600996ed7bedf884a5
tree32f5c57af0056461804c77e57f4cd2426e608f8d
parent028766aed21a4d8eb2e60c9ef667f75f9354a104
ipmacsec: fix warning on 32bit platform

On some 32 bit platforms, the printf was causing warning:
ipmacsec.c: In function ‘getattr_u64’:
ipmacsec.c:655:47: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘unsigned int’ [-Wformat=]
   fprintf(stderr, "invalid attribute length %lu\n",

Resolve by computing length as size_t first.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/ipmacsec.c