projects
/
project
/
odhcpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa6e63b
)
netlink: fix typo in debug msg
author
David 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
patch
|
blob
|
history
diff --git
a/src/netlink.c
b/src/netlink.c
index 393678d8b0bddd63407ba152343811e452edd54c..c612884f604b731788ccf218ee2920f1c53178cb 100644
(file)
--- a/
src/netlink.c
+++ b/
src/netlink.c
@@
-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;