aboutgitcodebugslistschat
path: root/conf.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-11-06 10:25:22 +1100
committerStefano Brivio <sbrivio@redhat.com>2024-11-07 12:46:48 +0100
commitc938d8a93e2561df1a4ac7897327456e97babb8c (patch)
treead0c6c5bc85b846b76284bb88d1c83652441cc16 /conf.c
parentf6b546c6e4f036bc569df05cf76eced3f68d6db8 (diff)
downloadpasst-c938d8a93e2561df1a4ac7897327456e97babb8c.tar
passt-c938d8a93e2561df1a4ac7897327456e97babb8c.tar.gz
passt-c938d8a93e2561df1a4ac7897327456e97babb8c.tar.bz2
passt-c938d8a93e2561df1a4ac7897327456e97babb8c.tar.lz
passt-c938d8a93e2561df1a4ac7897327456e97babb8c.tar.xz
passt-c938d8a93e2561df1a4ac7897327456e97babb8c.tar.zst
passt-c938d8a93e2561df1a4ac7897327456e97babb8c.zip
netlink: RTA_PAYLOAD() returns int, not size_t
Since it's the size of a chunk of memory it would seem logical that RTA_PAYLOAD() returns size_t. However, it doesn't - it explicitly casts its result to an int. RTNH_OK(), which often takes the result of RTA_PAYLOAD() as a parameter compares it to an int, so using size_t can result in comparison of different-signed integer warnings from clang. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'conf.c')
0 files changed, 0 insertions, 0 deletions