[PATCH] netlink: Use const rtnh pointer
6c7623d07 ("netlink: Add support to fetch default gateway from multipath
routes") inadvertently introduced a new cppcheck warning for a variable
which could be a const pointer but isn't. This occurs with
cppcheck-2.13.0-1.fc39.x86_64 in Fedora 39 at least.
Fixes: 6c7623d07 ("netlink: Add support to fetch default gateway from multipath
routes")
Signed-off-by: David Gibson
On Mon, 12 Feb 2024 15:05:28 +1100
David Gibson
6c7623d07 ("netlink: Add support to fetch default gateway from multipath routes") inadvertently introduced a new cppcheck warning for a variable which could be a const pointer but isn't. This occurs with cppcheck-2.13.0-1.fc39.x86_64 in Fedora 39 at least.
Oops, sorry, I didn't switch to 2.13 yet. On the other hand it's probably not bad that I lag a bit behind, so that we keep checking things on two/three versions. -- Stefano
On Mon, 12 Feb 2024 15:05:28 +1100
David Gibson
6c7623d07 ("netlink: Add support to fetch default gateway from multipath routes") inadvertently introduced a new cppcheck warning for a variable which could be a const pointer but isn't. This occurs with cppcheck-2.13.0-1.fc39.x86_64 in Fedora 39 at least.
Fixes: 6c7623d07 ("netlink: Add support to fetch default gateway from multipath routes")
Signed-off-by: David Gibson
Applied. -- Stefano
participants (2)
-
David Gibson
-
Stefano Brivio