netlink: fix typo in debug msg
authorDavid Härdeman <[email protected]>
Tue, 11 Nov 2025 12:08:22 +0000 (13:08 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Tue, 11 Nov 2025 13:18:39 +0000 (14:18 +0100)
As noted by @CasperVector in #115, there's a typo in netlink.c,
checking if true is true isn't very useful :)

Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/305
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/netlink.c

index 393678d8b0bddd63407ba152343811e452edd54c..c612884f604b731788ccf218ee2920f1c53178cb 100644 (file)
@@ -423,7 +423,7 @@ static int handle_rtm_neigh(struct nlmsghdr *hdr, bool add)
                if (iface->ifindex != ndm->ndm_ifindex)
                        continue;
 
-               debug("Netlink %s %s on %s", true ? "newneigh" : "delneigh",
+               debug("Netlink %s %s on %s", add ? "newneigh" : "delneigh",
                      buf, iface->name);
 
                event_info.iface = iface;